Skip to content

Commit 4a6ea2a

Browse files
committed
fix(ios): handle files removed during statDir
Closes #69
1 parent 3c16725 commit 4a6ea2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/FileAccess.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public class FileAccess : NSObject {
285285
let base = URL(fileURLWithPath: path.path())
286286
do {
287287
try resolve(FileManager.default.contentsOfDirectory(atPath: path.path())
288-
.map { try self.statFile(path: base.appendingPathComponent($0).path) }
288+
.compactMap { try? self.statFile(path: base.appendingPathComponent($0).path) }
289289
)
290290
} catch {
291291
reject("ERR", "Failed to list '\(path)'.", error)

0 commit comments

Comments
 (0)