Does FTPLIB have a 'local change directory' ?
Steve Bailey
quantumcheesedog at gmail.com
Sat Aug 6 21:44:49 EDT 2005
Yes, I tried using just the filename itself in using storbinary, but
it returned some kind of error, but your suggestion to use os.chdir is
so obvious I'm not sure why I didn't think of that.
Thanks for the email
Steve
On 8/6/05, jepler at unpythonic.net <jepler at unpythonic.net> wrote:
> If you want to change the working directory of a Python program, then use
> os.chdir() for that purpose. That's what 'lcd' does in ftp client software.
> It doesn't send a remote command of any kind.
>
> Or, when you call the storbinary method, give the os.path.basename() of the
> file you are storing, instead of the name you used to open the file on the local
> system.
>
> Jeff
>
>
>
More information about the Python-list
mailing list