private SFTPv3FileAttributes statBoth(String path, int statMethod) throws IOException
{
int req_id = generateNextRequestID();
TypesWriter tw = new TypesWriter();
tw.writeString(path, charsetName);
log.debug("Sending SSH_FXP_STAT/SSH_FXP_LSTAT...");
sendMessage(statMethod, req_id, tw.getBytes());
byte[] resp = receiveMessage(34000);