Эх сурвалжийг харах

Fix File Provider Extension : creation new document. #607

Marino Faggiana 6 жил өмнө
parent
commit
f166d2d557

+ 4 - 0
File Provider Extension/FileProviderData.swift

@@ -252,6 +252,10 @@ class FileProviderData: NSObject {
         
         var errorResult: Error?
         
+        if atPath == toPath {
+            return nil
+        }
+                
         if !fileManager.fileExists(atPath: atPath) {
             return NSError(domain: NSCocoaErrorDomain, code: NSFileNoSuchFileError, userInfo:[:])
         }