Explorar o código

Fix File Provider Extension : creation new document. #607

Marino Faggiana %!s(int64=6) %!d(string=hai) anos
pai
achega
f166d2d557
Modificáronse 1 ficheiros con 4 adicións e 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:[:])
         }