Uploading a file with ftplib
Michael_Goettsche
michi.goettsche at gmx.de
Thu Jan 1 09:56:09 EST 2004
On Thursday 01 January 2004 15:14, Rene Pijlman wrote:
> Michael_Goettsche:
> >can anybody please tell me how to upload it properly?
>
> This is a snippet from one of my scripts, that works fine:
>
> ftp = ftplib.FTP(Hostname,Username,Password)
> ftp.cwd(WorkingDirectory)
> ftp.storbinary("STOR " + RemoteZipFile, file(LocalZipFile, "rb"))
> ftp.quit()
>
> --
> René Pijlman
thank you, works perfect.
regards,
Michael.
More information about the Python-list
mailing list