mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-30 14:21:49 +02:00
ignore errors when deleting wal files
This commit is contained in:
@@ -433,8 +433,8 @@ public class ICloudStore: CloudStorage {
|
|||||||
|
|
||||||
let fileManager = NSFileManager.defaultManager()
|
let fileManager = NSFileManager.defaultManager()
|
||||||
try fileManager.removeItemAtURL(cacheFileURL)
|
try fileManager.removeItemAtURL(cacheFileURL)
|
||||||
_ = try fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-wal")
|
_ = try? fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-wal")
|
||||||
_ = try fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-shm")
|
_ = try? fileManager.removeItemAtPath("\(cacheFileURL.absoluteString)-shm")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try cs_autoreleasepool {
|
try cs_autoreleasepool {
|
||||||
|
|||||||
@@ -174,8 +174,8 @@ public final class LegacySQLiteStore: LocalStorage, DefaultInitializableStore {
|
|||||||
|
|
||||||
let fileManager = NSFileManager.defaultManager()
|
let fileManager = NSFileManager.defaultManager()
|
||||||
try fileManager.removeItemAtURL(fileURL)
|
try fileManager.removeItemAtURL(fileURL)
|
||||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try cs_autoreleasepool {
|
try cs_autoreleasepool {
|
||||||
|
|||||||
@@ -171,8 +171,8 @@ public final class SQLiteStore: LocalStorage, DefaultInitializableStore {
|
|||||||
|
|
||||||
let fileManager = NSFileManager.defaultManager()
|
let fileManager = NSFileManager.defaultManager()
|
||||||
try fileManager.removeItemAtURL(fileURL)
|
try fileManager.removeItemAtURL(fileURL)
|
||||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-wal")
|
||||||
_ = try fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
_ = try? fileManager.removeItemAtPath("\(fileURL.absoluteString)-shm")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try cs_autoreleasepool {
|
try cs_autoreleasepool {
|
||||||
|
|||||||
Reference in New Issue
Block a user