getting the status codes from the ftplib module
fredrik at pythonware.com
Wed Dec 28 10:28:34 CET 2005
Alvin A. Delagon wrote:
> I'm writing a simple python code that will upload files onto a ftp
> server. Everything's fine and working great except that the script I
> wrote don't know is an upload is successful or not. Is there a way to
> obtain the ftp status codes with this module? Thanks in advance!
the module raises an exception if something fails. if you didn't get
an exception, everything worked as expected.
most methods, including the storlines and storbinary methods, also
return the status code.
More information about the Python-list