This project is read-only.

Seeking Code Sample to Download Multiple Files of Same File Extension

Aug 8, 2013 at 10:01 PM

I've reviewed the documentation and have determined how to request a directory listing and download a single file. I now am seeking code sample(s) for how to download files of a certain extension (eg .pgp, .xml etc.). What syntax / methods must be used to request more than one file at a time, and to only download those files with a specified extension?

Thanks for your help and guidance.
Aug 8, 2013 at 10:04 PM
You have to write code to do that yourself. This project does not provide any facility to filter out what's returned in file listings and neither does the FTP protocol. You'll need to iterate through the listing results your self and decide what you want
to download and download each file individually. That kind of functionality exceeds the scope of the goals for this project which is to just implement the FTP protocol.