[ftputil] problem uploading files to ftp server

wccppp wccppp at gmail.com
Tue Jan 30 20:22:27 CET 2007


Stefan,

Thanks for your reply.


Which versions of ftputil and Python do you use?

ftputil 2.2.1 (the latest) and python 2.5

I don't have a concrete idea but some suggestions.

Did you actually call the close method of the file-like object?
If not, does it make a difference? It's common that network data
is buffered on the client side and some part of it only
transferred when the file/socket is closed.

do i need to close? the syntax for upload method is upload(source,
target, mode) where both source and target is string, not a file
object.  can I call close method on them?  i tried it and got an
error.

Can you transfer the files successfully with a command line or
GUI FTP client from the same client computer?

yes.  i do it regularly with ftp client (FileZilla). that's why i'm
trying to automate it with python.


Can you reproduce the problem with another FTP server? (By the
way, which one on which platform do you use?) How good is the
network connection between client and server?

yes. the same problem exists on two ftp servers i tried.  i'm on Windows XP
Pro. SP2. the internet connection is good.


Btw, I could not forward the message in this mailing list to my email, so I
had to start a new thread. I thought I enabled that option when I subscribed
to this list, guess not. and I don't know how to change it.

thanks for your help.

--
wcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/ftputil/attachments/20070130/a312ecf6/attachment-0001.htm 


More information about the ftputil mailing list