There's a CustomFilter property in FTPFileList, the base class.
OK. Found it. Still cannot figure out how to use it with the local file list. When i upload/download, i call a delegate to filter which works.
This is what I am trying but not working..
this part dows not work
foreach (FTPFile item in FtpLocalFileList1) {
FtpLocalFileList1.CustomFilter = new FileFilter(IsFileDb(item));
}
and
private bool IsFileDb(FTPFile file)
{
bool filterFile = false;
if (file.Name.ToUpper.Contains(".DB")) {
filterFile = false;
//return all files except .db
} else {
filterFile = true;
}
return filterFile;
}
Are there any examples of using a customFilter or snippets or any help to assist in this?
Thanks