retrbinary(commandcallback [blocksize [rest]]returns the results of executing command on the server using binary transfer mode command is string that specifies the appropriate file retrieval command and is almost always 'retr filenamecallback is callback function that is invoked each time block of data is received this callback function is invoked with single argument which is the received data in the form of string blocksize is the maximum block size to use and defaults to bytes rest is an optional offset into the file if suppliedthis specifies the position in the file where you want to start the transfer howeverthis is not supported by all ftp servers so this may result in an error_reply exception retrlines(command [callback]returns the results of executing command on the server using text transfer mode command is string that specifies the command and is usually something like 'retr filenamecallback is callback function that is invoked each time line of data is received this callback function is called with single argument which is string containing the received data if callback is omittedthe returned data is printed to sys stdout rmd(pathnameremoves directory from the server sendcmd(commandsends simple command to the server and returns the server response command is string containing the command this method should only be used for commands that don' involve the transfer of data set_pasv(pasvsets passive mode pasv is boolean flag that turns passive mode on if true or off if false by defaultpassive mode is on size(filenamereturns the size of filename in bytes returns none if the size can' be determined for some reason storbinary(commandfile [blocksize]executes command on the server and transmits data using binary transfer mode command is string that specifies the low-level command it is almost always set to 'stor filename'where filename is the name of file you want to place on the server file is an open file-object from which data will be read using file read(blocksizeand transferred to the server blocksize is the blocksize to use in the transfer by defaultit is bytes storlines(commandfileexecutes command on the server and transfers data using text transfer mode command is string which specifies the low-level command it is usually 'stor filenamefile is an open file-object from which data will be read using file readline(and sent to the server lib fl ff