Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Do not attempt to process files that are not in an uploads subdirectory
Browse files Browse the repository at this point in the history
This was trying to process files that were being stored by the app in app support at the base directory.
  • Loading branch information
syoung-smallwisdom committed Feb 16, 2024
1 parent 969b5c9 commit 609a96a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,13 @@ class BridgeFileUploadManager: SandboxFileManager, BridgeURLSessionDownloadDeleg
else {
continue
}
let uploadSuffix = "Uploads"
if isDirectory {
if !name.hasSuffix("Uploads") {
if !name.hasSuffix(uploadSuffix) {
dirEnumerator.skipDescendants()
}
} else {
} else if fileUrl.pathComponents.contains(where: { $0.hasSuffix(uploadSuffix) }) {
// Exclude files at the base of the application support directory.
allFiles.append(fileUrl)
}
}
Expand Down

0 comments on commit 609a96a

Please sign in to comment.