FTP download folder

Every once in a while I want to be able to download an entire folder from an FTP server. After setting the local download directory, with something like:

lcd /Users/brad/Desktop/Junk

I navigate to the directory on the FTP site containing all the files I wish to download and type:

prompt
# the command above allows the downloads to keep going without user intervention

and then
mget *.*
# mget with the above wildcard should download any file in the directory. There are any number of ways to limit it, for instance, if you only want .csv files use the following command:

mget *.csv

Leave a Reply

Your email address will not be published. Required fields are marked *