I have done this now and have the same issue.
This code:
try
{
List<FtpItem> items = ftp.GetList(Globals.SelectedProfileStagingFolder);
foreach (FtpItem item in items)
{
Log(" - Downloading " + item.Name + "...");
DownloadFtpFile(item.Name);
}
}
catch (Exception ex)
{
//Log(ex.ToString());
File.AppendAllText(Globals.DefaultErrorLogPath, "\n");
File.AppendAllText(Globals.DefaultErrorLogPath, ex.ToString());
MessageBox.Show(ex.ToString());
Console.Write(ex.ToString());
}
calls this code:
private void DownloadFtpFile(string f)
{
...
}
ftp.Download(f, Globals.UserDocumentsTempStgFolder + f) reports the current file name is "commonltr.css" as expected.
However it still throws the exception File Not Found.