mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-27 03:41:29 +01:00
Typo
This commit is contained in:
@@ -797,7 +797,7 @@ public extension DataStack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let externalStorageDirName = "." + fileURL.deletingPathExtension().lastPathComponent + "_SUPPORT"
|
let externalStorageDirName = "." + fileURL.deletingPathExtension().lastPathComponent + "_SUPPORT"
|
||||||
let temporaryExtenralStorageURL = temporaryDirectoryURL.appendingPathComponent(
|
let temporaryExternalStorageURL = temporaryDirectoryURL.appendingPathComponent(
|
||||||
externalStorageDirName,
|
externalStorageDirName,
|
||||||
isDirectory: true
|
isDirectory: true
|
||||||
)
|
)
|
||||||
@@ -811,11 +811,11 @@ public extension DataStack {
|
|||||||
resultingItemURL: nil
|
resultingItemURL: nil
|
||||||
)
|
)
|
||||||
|
|
||||||
if fileManager.fileExists(atPath: temporaryExtenralStorageURL.path) {
|
if fileManager.fileExists(atPath: temporaryExternalStorageURL.path) {
|
||||||
let extenralStorageURL = fileURL.deletingLastPathComponent().appendingPathComponent(externalStorageDirName, isDirectory: true)
|
let extenralStorageURL = fileURL.deletingLastPathComponent().appendingPathComponent(externalStorageDirName, isDirectory: true)
|
||||||
try fileManager.replaceItem(
|
try fileManager.replaceItem(
|
||||||
at: extenralStorageURL as URL,
|
at: extenralStorageURL as URL,
|
||||||
withItemAt: temporaryExtenralStorageURL,
|
withItemAt: temporaryExternalStorageURL,
|
||||||
backupItemName: nil,
|
backupItemName: nil,
|
||||||
options: [],
|
options: [],
|
||||||
resultingItemURL: nil
|
resultingItemURL: nil
|
||||||
@@ -827,7 +827,7 @@ public extension DataStack {
|
|||||||
catch {
|
catch {
|
||||||
|
|
||||||
_ = try? fileManager.removeItem(at: temporaryFileURL)
|
_ = try? fileManager.removeItem(at: temporaryFileURL)
|
||||||
_ = try? fileManager.removeItem(at: temporaryExtenralStorageURL)
|
_ = try? fileManager.removeItem(at: temporaryExternalStorageURL)
|
||||||
throw CoreStoreError(error)
|
throw CoreStoreError(error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user