I'm using WinSCP .net assembly
to download some files off of a ftp server. I want to restrict the download to
- Only the top level directory, ie. no sub directories
- Only
.csv
files
To accomplish this I'm using the include/exclude file masks
TransferOptions transferOptions = new TransferOptions();
transferOptions.FileMask = "*.csv | */";
Now the exclude part of the search is working fine and it doesn't bring down any subdirectories but the include part doesn't work at all. It's not downloading any csv files in the root directory. Does anyone know what I'm missing here?