This commit is contained in:
Alin
2024-03-22 18:16:55 -06:00
parent 5350a8f310
commit 7906cd70f7
13 changed files with 311 additions and 186 deletions
+3 -1
View File
@@ -59,9 +59,11 @@ class ReversePathsSearcher {
private func processItem(_ itemName: String, itemURL: URL, allPaths: [String], allNames: [String]) {
let formattedItemName = itemName.pearFormat()
let itemPath = itemURL.path.pearFormat()
let itemLastPathComponent = itemURL.lastPathComponent.pearFormat()
guard !skipped.contains(where: { formattedItemName.contains($0) }),
!allPaths.contains(itemPath),
// !allPaths.contains(itemPath),
!allPaths.contains(where: { $0 == itemPath || $0.hasSuffix("/\(itemLastPathComponent)") }),
!allNames.contains(formattedItemName),
isSupportedFileType(at: itemURL.path) else {
return