private void issueGETPUT ( String command , boolean passive , HostPort port , int mode , String path ) throws IOException { Command cmd = new Command ( command , ( passive ? "pasv" : ( "port=" + port . toFtpCmdArgument ( ) ) ) + ";" + "path=" + path + ";" + ( mode > 0 ? "mode=" + getModeStr ( mode ) + ";" : "" ) ) ; controlChannel . write ( cmd ) ; }
Writes a GFD . 47 compliant GET or PUT command to the control channel .