FTP Windows AS/400

Brendan Bispham bnbtss at yahoo.co.uk
Tue Sep 13 18:43:42 CEST 2005


Hi Tim,
On Tuesday 13 September 2005 17:31, Tim G. wrote:

> I cannot get the script to switch from native to IFS. 

Yes you can...

> Traceback (most recent call last):
>   File "C:\Python24\Tools\scripts\ftp400.py", line 9, in ?
>     ftp.cwd(path)

It's the cwd which is having a problem

> here is the script:
>
> import ftplib, os
>
> filename=''
> path = "directory"

Change the path to an absolute path, eg:
>>> ftp.sendcmd('site namefmt 1')
'250  Now using naming format "1".'
>>> ftp.cwd('/home')
'250 "/home" is current directory.'

HTH



More information about the Python-list mailing list