We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c16725 commit 4a6ea2aCopy full SHA for 4a6ea2a
ios/FileAccess.swift
@@ -285,7 +285,7 @@ public class FileAccess : NSObject {
285
let base = URL(fileURLWithPath: path.path())
286
do {
287
try resolve(FileManager.default.contentsOfDirectory(atPath: path.path())
288
- .map { try self.statFile(path: base.appendingPathComponent($0).path) }
+ .compactMap { try? self.statFile(path: base.appendingPathComponent($0).path) }
289
)
290
} catch {
291
reject("ERR", "Failed to list '\(path)'.", error)
0 commit comments