Facundo Batista
2007-01-24 12:53:16 UTC
Sorry for the lame question, I'm still trying to pick up Python and new to
the list here.
Welcome!the list here.
I'm assuming that I should use storbinary( command, file[, blocksize]) to
transfer the files. the documentation says "command should be an appropriate
"STOR" command: "STOR filename"."
Regards,transfer the files. the documentation says "command should be an appropriate
"STOR" command: "STOR filename"."
fp = open("/tmp/file_to_transfer.txt") # open the file
self.ftp.storbinary("STOR file_to_transfer.txt", fp) # note that the name has not the path
fp.close() # close the file, :)
self.ftp.storbinary("STOR file_to_transfer.txt", fp) # note that the name has not the path
fp.close() # close the file, :)
--
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/