mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-27 10:53:22 +08:00
+合并文件功能增加添加文件夹时不导入子文件夹的选项
This commit is contained in:
+11
-6
@@ -347,12 +347,17 @@ namespace PDFPatcher.Model
|
||||
|
||||
var p = FilePath.ToString();
|
||||
var l = Items;
|
||||
if (AppContext.Merger.SubFolderBeforeFiles) {
|
||||
AddSubDirectories(p, l);
|
||||
AddFiles(p, l);
|
||||
}
|
||||
else {
|
||||
AddSubDirectoriesAndFiles(p, l);
|
||||
switch (AppContext.Merger.SubFolder) {
|
||||
case MergerOptions.SubFolderPosition.BeforeFiles:
|
||||
AddSubDirectories(p, l);
|
||||
AddFiles(p, l);
|
||||
break;
|
||||
case MergerOptions.SubFolderPosition.WithFiles:
|
||||
AddSubDirectoriesAndFiles(p, l);
|
||||
break;
|
||||
case MergerOptions.SubFolderPosition.Exclude:
|
||||
AddFiles(p, l);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user