marinofaggiana 4 年之前
父节点
当前提交
59c070e7db
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      iOSClient/Networking/NCNetworking.swift

+ 4 - 4
iOSClient/Networking/NCNetworking.swift

@@ -474,11 +474,11 @@ import Queuer
         
         
         NCCommunication.shared.createFolder(uploadFolder) { (_, _, _, errorCode, errorDescription) in
         NCCommunication.shared.createFolder(uploadFolder) { (_, _, _, errorCode, errorDescription) in
         
         
-            if errorCode == 0 || errorCode == NCGlobal.shared.errordMethodNotSupported {
+            if errorCode == 0 || errorCode == NCGlobal.shared.errordMethodNotSupported { // errordMethodNotSupported = already exists
                     
                     
-                DispatchQueue.global(qos: .background).async {
-                                                
-                    NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": metadata.ocId])
+                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": metadata.ocId])
+                
+                DispatchQueue.global(qos: .background).async {                   
                         
                         
                     for fileName in filesNames {
                     for fileName in filesNames {