marinofaggiana 4 lat temu
rodzic
commit
7c7016ebf8

+ 2 - 2
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -6,8 +6,8 @@
         "repositoryURL": "https://github.com/realm/realm-cocoa",
         "state": {
           "branch": null,
-          "revision": "59aa69458542e3e84d29c02588407b2d241d8fa0",
-          "version": "5.4.1"
+          "revision": "f64ac045d8cb171d8e317d9b854df7215aed7466",
+          "version": "5.4.2"
         }
       },
       {

+ 12 - 0
iOSClient/Utility/NCUtilityFileSystem.swift

@@ -96,5 +96,17 @@ class NCUtilityFileSystem: NSObject {
         }
         catch {}
     }
+    
+    @objc func moveFileInBackground(atPath: String, toPath: String) {
+        
+        DispatchQueue.global().async {
+            do {
+                try FileManager.default.removeItem(atPath: toPath)
+                try FileManager.default.copyItem(atPath: atPath, toPath: toPath)
+                try FileManager.default.removeItem(atPath: atPath)
+            }
+            catch {}
+        }
+    }
 }