in reply to How to fetch all files with a given name from an FTP server

Use dir/ls to get a list of files, use grep /\.txt$/, to filter that list, then use get() as documented to download those files
  • Comment on Re: How to fetch all files with a given name from an FTP server