On 2009-01-06, Jeremy.Chen wrote:
> ftp.storbinary("STOR ftp-tst/ftp-file\n", fl)
> --
> I think the params after STOR should't be a path,should be splited.
> ftp.cwd("ftp-tst")
> ftp.storbinary("STOR ftp-file\n", fl)
No that isn't the problem. The problem is the '\n' at the end of the
On Jan 6, 7:56 pm, Antoon Pardon wrote:
> I have managed to prune the script, so I can post it here:
>
> ==
>
> from ftplib import FTP
>
> bckrt = "/tmpstor/rcpc42"
>
> def process():
> print "making directory"
> try:
> ftp.mkd('ftp-t
I have managed to prune the script, so I can post it here:
==
from ftplib import FTP
bckrt = "/tmpstor/rcpc42"
def process():
print "making directory"
try:
ftp.mkd('ftp-tst')
print "mkdir succeeded"
except Exception, ErrMsg:
I'm not sure if this is a python problem or something else.
I'm trying with the use of ftplib to get a dump on a remote machine.
The dump mirrors the directory structure but instead of the files
a bziped tar file is made and transferred.
While mirroring the directory structure I don't care to chec