Rich Krauter wrote:
> Israel Carr wrote:
> 
>>I'm using ftplib to connect to a server, and I want to grab every file
>>from a specific folder.  The filenames change frequently.  What is the
>>best way to use retrbinary with wildcards(or some better option) to
>>transfer all files?
>>
>>Thanks,
>>Israel
>>
>>_______________________________________________
>>Tutor maillist  -  [email protected]
>>http://mail.python.org/mailman/listinfo/tutor
>>
> 
> 
> You can try ftpmirror.py, which is included with python.

If you look at line 126 of ftpmirror.py you will see how it uses 
retrlines('LIST') to retrieve and 
parse the remote directory.

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to