|
@@ -994,12 +994,8 @@ class FileProvider: NSFileProviderExtension {
|
|
|
// Remove from dictionary
|
|
|
listUpload.removeValue(forKey: identifier.rawValue)
|
|
|
|
|
|
- // Remove file *changeDocument
|
|
|
- _ = self.deleteFile(fileNameLocalPath)
|
|
|
-
|
|
|
// Update DB
|
|
|
if let directoryID = NCManageDatabase.sharedInstance.getDirectoryID(serverUrl) {
|
|
|
-
|
|
|
if let metadata = NCManageDatabase.sharedInstance.getMetadata(predicate: NSPredicate(format: "account = %@ AND fileName = %@ AND directoryID = %@", account, fileName, directoryID)) {
|
|
|
|
|
|
metadata.date = date! as NSDate
|
|
@@ -1013,6 +1009,9 @@ class FileProvider: NSFileProviderExtension {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Remove file *changeDocument
|
|
|
+ _ = self.deleteFile(fileNameLocalPath)
|
|
|
+
|
|
|
// Refresh
|
|
|
self.refreshEnumerator(identifier: identifier, serverUrl: serverUrl)
|
|
|
|