|
@@ -269,7 +269,8 @@ class AutoTestAdvanceSettingView : NSView, NSTableViewDataSource, NSTableViewDel
|
|
// 文件夹
|
|
// 文件夹
|
|
let subpaths = try! FileManager.default.subpathsOfDirectory(atPath: path)
|
|
let subpaths = try! FileManager.default.subpathsOfDirectory(atPath: path)
|
|
for subpath in subpaths {
|
|
for subpath in subpaths {
|
|
- if NSString(string: subpath).contains(".DS_Store") {
|
|
|
|
|
|
+ if (NSString(string: subpath).contains(".DS_Store") ||
|
|
|
|
+ !NSArray(array: ["PDF", "pdf"]).contains(NSString(string: subpath).pathExtension)) {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
let nPath = NSString(string: path).appendingPathComponent(subpath)
|
|
let nPath = NSString(string: path).appendingPathComponent(subpath)
|
|
@@ -282,6 +283,10 @@ class AutoTestAdvanceSettingView : NSView, NSTableViewDataSource, NSTableViewDel
|
|
createSymbolicLink(nPath, toDirectory: NSString(string: resultPath).deletingLastPathComponent)
|
|
createSymbolicLink(nPath, toDirectory: NSString(string: resultPath).deletingLastPathComponent)
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
|
|
+ if !NSArray(array: ["PDF", "pdf"]).contains(NSString(string: path).pathExtension) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
let resultPath = NSString(string: toDirectory).appendingPathComponent(NSString(string: path).lastPathComponent)
|
|
let resultPath = NSString(string: toDirectory).appendingPathComponent(NSString(string: path).lastPathComponent)
|
|
let directory = NSString(string: resultPath).deletingLastPathComponent
|
|
let directory = NSString(string: resultPath).deletingLastPathComponent
|
|
|
|
|