Using CURL and connecting by FTP, how do I list the contents of a remote directory? Instead of downloading a single file individually and having to know the filename, I have a requirement to download the whole remote directory (which will just be a bunch of text files).
Is there any way using FTP with cURL to either:
- Download all files in a directory
- List all files in a directory, so I can iterate over these and download.