We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81924f commit 247a050Copy full SHA for 247a050
ios/Modules/NativeFsModule/NativeFsModule.swift
@@ -76,7 +76,10 @@ public class NativeFsModule: NSObject {
76
77
static func remove(_ filepath: String) throws {
78
let fileManager = FileManager.default
79
- guard fileManager.fileExists(atPath: filepath) else { return }
+ guard fileManager.fileExists(atPath: filepath) else {
80
+ NSLog("Trying to delete non-existing file: \(filepath)")
81
+ return
82
+ }
83
try fileManager.removeItem(atPath: filepath)
84
}
85
0 commit comments