Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread snowf
Steve Holden wrote: > snowf wrote: > > There are no such a method using to download a whole directory in the > > lib of ' ftplib '. > > thanks for anybody's help! > > > If your Python distrbution contains a "Tools" directory you should look > for the "ftpmirror.py" utility in it. If you don't h

Re: How to get all the file of a oppoint directory from a FTP

2006-09-06 Thread Steve Holden
snowf wrote: > There are no such a method using to download a whole directory in the > lib of ' ftplib '. > thanks for anybody's help! > If your Python distrbution contains a "Tools" directory you should look for the "ftpmirror.py" utility in it. If you don't have Tools then you can extract t

Re: How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread snowf
John Machin wrote: > snowf wrote: > > There are no such a method using to download a whole directory in the > > lib of ' ftplib '. > > thanks for anybody's help! > > So you'll have to lash one up: > > (untested) > > Firstly, > alist = [] > ftpobj.retrlines('list', alist.append) > should

Re: How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread John Machin
snowf wrote: > There are no such a method using to download a whole directory in the > lib of ' ftplib '. > thanks for anybody's help! So you'll have to lash one up: (untested) Firstly, alist = [] ftpobj.retrlines('list', alist.append) should get you a list of filenames. Secondly,

How to get all the file of a oppoint directory from a FTP

2006-09-05 Thread snowf
There are no such a method using to download a whole directory in the lib of ' ftplib '. thanks for anybody's help! -- http://mail.python.org/mailman/listinfo/python-list