marinofaggiana 4 years ago
parent
commit
8cf08a5719
1 changed files with 3 additions and 3 deletions
  1. 3 3
      iOSClient/Networking/NCNetworking.swift

+ 3 - 3
iOSClient/Networking/NCNetworking.swift

@@ -348,7 +348,7 @@ import Queuer
                 }
                        
                 fileNameLocalPath = CCUtility.getDirectoryProviderStorageOcId(extractMetadata.ocId, fileNameView: extractMetadata.fileNameView)
-                CCUtility.moveFile(atPath: fileNamePath, toPath: fileNameLocalPath)
+                NCUtilityFileSystem.shared.moveFileInBackground(atPath: fileNamePath!, toPath: fileNameLocalPath)
 
                 NCManageDatabase.sharedInstance.addMetadata(extractMetadata)
                
@@ -462,8 +462,8 @@ import Queuer
                 
                 let metadata = tableMetadata.init(value: metadata)
                
-                CCUtility.moveFile(atPath: CCUtility.getDirectoryProviderStorageOcId(metadata.ocId), toPath:  CCUtility.getDirectoryProviderStorageOcId(ocId))
-                    
+                NCUtilityFileSystem.shared.moveFileInBackground(atPath: CCUtility.getDirectoryProviderStorageOcId(metadata.ocId), toPath: CCUtility.getDirectoryProviderStorageOcId(ocId))
+               
                 metadata.uploadDate = date ?? NSDate()
                 metadata.etag = etag ?? ""
                 metadata.ocId = ocId!