* @throws java.io.IOException
* @throws org.globus.ftp.exception.ServerException
*/
public void chmod(String path, String mode) throws IOException, ServerException {
try {
Command cmd = new Command("SITE CHMOD", mode + " " + path);
this.controlChannel.execute(cmd);
} catch (FTPReplyParseException ex) {
throw new IOException("Parse Error: " + ex.getMessage());
} catch (UnexpectedReplyCodeException ex) {
throw new IOException("Unexpected Reply: " + ex.getMessage());