I use the fluentftp library to upload a folder to ftp. How i can skip the subfolders of the directory.
// upload only PDF files
var rules = new List<FtpRule>{
new FtpFileExtensionRule(true, new List<string>{ "pdf" }),
new FtpFolderNameRule(false, FtpFolderNameRule.CommonBlacklistedFolders)
// only allow PDF files
};
ftp.UploadDirectory(ServiceAbrechnungPath, @"/Abrechnungen",
FtpFolderSyncMode.Mirror, FtpRemoteExists.Skip, FtpVerify.None, rules);