Tienson Qin před 4 roky
rodič
revize
3c69a82659
1 změnil soubory, kde provedl 1 přidání a 10 odebrání
  1. 1 10
      ios/App/App/FileContainer.swift

+ 1 - 10
ios/App/App/FileContainer.swift

@@ -32,17 +32,8 @@ public class FileContainer: CAPPlugin, UIDocumentPickerDelegate {
             }
         }
 
-        let str = ""
-        let filename = (self.containerUrl?.appendingPathComponent(".logseq"))!
-
-        do {
-            try str.write(to: filename, atomically: true, encoding: String.Encoding.utf8)
-        } catch {
-            // failed to write file – bad permissions, bad filename, missing permissions, or more likely it can't be converted to the encoding
-        }
-
         self._call?.resolve([
-            "path": self.containerUrl!.path
+            "path": self.containerUrl?.path
                             ])
     }
 }