Browse Source

Fix File Provider Extension : creation new document. #607

Marino Faggiana 7 năm trước cách đây
mục cha
commit
f166d2d557
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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:[:])
         }