瀏覽代碼

fix "move"

Marino Faggiana 6 年之前
父節點
當前提交
c94a880cf2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      PickerFileProvider/FileProvider.swift

+ 1 - 1
PickerFileProvider/FileProvider.swift

@@ -671,9 +671,9 @@ class FileProvider: NSFileProviderExtension, CCNetworkingDelegate {
                 return
             }
             serverUrlTo = NCManageDatabase.sharedInstance.getServerUrl(metadataTo.directoryID)! + "/" + metadataTo.fileName
-            directoryIDTo = NCManageDatabase.sharedInstance.getDirectoryID(serverUrlTo)!
         }
         
+        directoryIDTo = NCManageDatabase.sharedInstance.getDirectoryID(serverUrlTo)!
         fileNameTo = serverUrlTo + "/" + itemFrom.filename
     
         ocNetworking?.moveFileOrFolder(fileNameFrom, fileNameTo: fileNameTo, success: {