Does FTPLIB have a 'local change directory' ?

Robert Kern rkern at ucsd.edu
Sat Aug 6 21:37:22 EDT 2005


python newbie wrote:
> Hi, first I wanted to say that:
> 
>  I have finally been able to ftp a file in my python app -  however, it 
> works like this:
> 
>  When you use storbinary and hand it a full path 
> "c:\myfiles\morefiles\picture.gif"..
>  it will find the file on your hard drive, and
> then upload the file,  but on the ftp server, it literally names the file:
> 
> "c:\myfiles\morefiles\picture.gif"
> 
> 
> I'd like to be able to first
> 
>   ftplib.lcd( "c:\myfiles\morefiles"  )
> 
>  and then just
> 
>     storbinary( picture.gif .. ).
> 
> But the python doc doesn't show any LCD.

os.chdir()

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list