mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:49 +01:00
ignore errors when deleting wal files
This commit is contained in:
1 parent
f99d3cc21a
commit
df835114cb
3 files changed
+6
-6
No files matched your search
@@ -433,8 +433,8 @@ public class ICloudStore: CloudStorage {
|
||||
|
||||
let fileManager = NSFileManager.defaultManager()
|
||||
try fileManager.removeItemAtURL(cacheFileURL)
|
||||
_ = try fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-wal")
|
||||
_ = try fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-shm")
|
||||
_ = try? fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-wal")
|
||||
_ = try? fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-shm")
|
||||
return
|
||||
}
|
||||
try cs_autoreleasepool {
|
||||
|
||||
@@ -174,8 +174,8 @@ public final class LegacySQLiteStore: LocalStorage, DefaultInitializableStore {
|
||||
|
||||
let fileManager = NSFileManager.defaultManager()
|
||||
try fileManager.removeItemAtURL(fileURL)
|
||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||
return
|
||||
}
|
||||
try cs_autoreleasepool {
|
||||
|
||||
@@ -171,8 +171,8 @@ public final class SQLiteStore: LocalStorage, DefaultInitializableStore {
|
||||
|
||||
let fileManager = NSFileManager.defaultManager()
|
||||
try fileManager.removeItemAtURL(fileURL)
|
||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||
return
|
||||
}
|
||||
try cs_autoreleasepool {
|
||||
|
||||
Reference in new issue
Block a user