Skip to content

Commit

Permalink
fix(ios): handle files removed during statDir
Browse files Browse the repository at this point in the history
Closes #69
  • Loading branch information
alpha0010 committed Jun 12, 2023
1 parent 3c16725 commit 4a6ea2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/FileAccess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public class FileAccess : NSObject {
let base = URL(fileURLWithPath: path.path())
do {
try resolve(FileManager.default.contentsOfDirectory(atPath: path.path())
.map { try self.statFile(path: base.appendingPathComponent($0).path) }
.compactMap { try? self.statFile(path: base.appendingPathComponent($0).path) }
)
} catch {
reject("ERR", "Failed to list '\(path)'.", error)
Expand Down

0 comments on commit 4a6ea2a

Please sign in to comment.