diff --git a/ios/FileAccess.swift b/ios/FileAccess.swift index a518891..e6ec35c 100644 --- a/ios/FileAccess.swift +++ b/ios/FileAccess.swift @@ -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)