我使用 fluentftp 库将文件夹上传到 ftp。我如何跳过目录的子文件夹。
// 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);