Skip to content

Commit 247a050

Browse files
chore: log non-existing file delete operation
1 parent f81924f commit 247a050

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/Modules/NativeFsModule/NativeFsModule.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ public class NativeFsModule: NSObject {
7676

7777
static func remove(_ filepath: String) throws {
7878
let fileManager = FileManager.default
79-
guard fileManager.fileExists(atPath: filepath) else { return }
79+
guard fileManager.fileExists(atPath: filepath) else {
80+
NSLog("Trying to delete non-existing file: \(filepath)")
81+
return
82+
}
8083
try fileManager.removeItem(atPath: filepath)
8184
}
8285

0 commit comments

Comments
 (0)