diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-07-14 12:26:39 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-07-14 12:26:39 +0300 |
commit | 542234e5906b8c63b54212270e98b4fa7f490259 (patch) | |
tree | 85b9317ad96b4289ce85d1f9ccc5e0d82b95202a /File Provider Extension | |
parent | 7bc92b05a9dcbdd5cf1058111cebeb4bec165c2a (diff) |
coding
Diffstat (limited to 'File Provider Extension')
-rw-r--r-- | File Provider Extension/FileProviderExtension+Actions.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/File Provider Extension/FileProviderExtension+Actions.swift b/File Provider Extension/FileProviderExtension+Actions.swift index acc5d11a7..462fc4e93 100644 --- a/File Provider Extension/FileProviderExtension+Actions.swift +++ b/File Provider Extension/FileProviderExtension+Actions.swift @@ -140,7 +140,7 @@ extension FileProviderExtension { NCManageDatabase.sharedInstance.renameDirectory(ocId: ocIdFrom, serverUrl: serverUrlTo) } - _ = NCManageDatabase.sharedInstance.moveMetadata(ocId: ocIdFrom, serverUrlTo: serverUrlTo) + NCManageDatabase.sharedInstance.moveMetadata(ocId: ocIdFrom, serverUrlTo: serverUrlTo, freeze: true) guard let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "ocId == %@", ocIdFrom)) else { completionHandler(nil, NSFileProviderError(.noSuchItem)) @@ -177,7 +177,7 @@ extension FileProviderExtension { if errorCode == 0 { // Rename metadata - guard let metadata = NCManageDatabase.sharedInstance.renameMetadata(fileNameTo: itemName, ocId: metadata.ocId) else { + guard let metadata = NCManageDatabase.sharedInstance.renameMetadata(fileNameTo: itemName, ocId: metadata.ocId, freeze: false) else { completionHandler(nil, NSFileProviderError(.noSuchItem)) return } |