FTP Windows AS/400
bnbtss at yahoo.co.uk
Tue Sep 13 18:43:42 CEST 2005
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 ?
It's the cwd which is having a problem
> here is the script:
> import ftplib, os
> path = "directory"
Change the path to an absolute path, eg:
>>> ftp.sendcmd('site namefmt 1')
'250 Now using naming format "1".'
'250 "/home" is current directory.'
More information about the Python-list