mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-15 21:53:39 +01:00
ignore errors when deleting wal files
This commit is contained in:
@@ -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