From d9db7e4a8204df904c0e8dd77cff6a7026aebc7b Mon Sep 17 00:00:00 2001 From: Zheng-Xiang Ke Date: Sat, 6 Jan 2018 15:00:53 +0800 Subject: [PATCH] Typo --- Sources/DataStack+Migration.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/DataStack+Migration.swift b/Sources/DataStack+Migration.swift index 339c478..b4c6028 100644 --- a/Sources/DataStack+Migration.swift +++ b/Sources/DataStack+Migration.swift @@ -797,7 +797,7 @@ public extension DataStack { } let externalStorageDirName = "." + fileURL.deletingPathExtension().lastPathComponent + "_SUPPORT" - let temporaryExtenralStorageURL = temporaryDirectoryURL.appendingPathComponent( + let temporaryExternalStorageURL = temporaryDirectoryURL.appendingPathComponent( externalStorageDirName, isDirectory: true ) @@ -811,11 +811,11 @@ public extension DataStack { resultingItemURL: nil ) - if fileManager.fileExists(atPath: temporaryExtenralStorageURL.path) { + if fileManager.fileExists(atPath: temporaryExternalStorageURL.path) { let extenralStorageURL = fileURL.deletingLastPathComponent().appendingPathComponent(externalStorageDirName, isDirectory: true) try fileManager.replaceItem( at: extenralStorageURL as URL, - withItemAt: temporaryExtenralStorageURL, + withItemAt: temporaryExternalStorageURL, backupItemName: nil, options: [], resultingItemURL: nil @@ -827,7 +827,7 @@ public extension DataStack { catch { _ = try? fileManager.removeItem(at: temporaryFileURL) - _ = try? fileManager.removeItem(at: temporaryExtenralStorageURL) + _ = try? fileManager.removeItem(at: temporaryExternalStorageURL) throw CoreStoreError(error) } }