Explorar el Código

Fix File Provider Extension : creation new document. #607

Marino Faggiana hace 6 años
padre
commit
f166d2d557
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      File Provider Extension/FileProviderData.swift

+ 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:[:])
         }