I have written a program based on examples online that polls a remote ftp server for a file list, and then downloads that list to a local director for further processing. For testing, I pointed it at a subdirectory of my personal web site that has some pdf files. The code is listed here:
public void DownloadFiles()
{
List<string> filenames = GetDirectoryListing(FtpServerURL);
foreach (string filename in filenames)
{
string savePath = SaveFolder + "/" + filename;
FileStream fileStreamOutput = new FileStream(savePath, FileMode.Create);
FtpWebRequest request =
(FtpWebRequest)WebRequest.Create(new Uri(FtpServerURL + filename));
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.UseBinary = true;
request.Credentials = new NetworkCredential ...
Go to the complete details ...