mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
feat(ios): download icloud files when re-indexing
This commit is contained in:
@@ -196,6 +196,7 @@
|
||||
(.pickFolder util/folder-picker)
|
||||
#(js->clj % :keywordize-keys true)
|
||||
:path)
|
||||
_ (when (util/native-ios?) (.downloadFilesFromiCloud util/download-icloud-files))
|
||||
files (readdir path)
|
||||
files (js->clj files :keywordize-keys true)]
|
||||
(into [] (concat [{:path path}] files))))
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
(.isPluginAvailable Capacitor name))
|
||||
|
||||
(defonce folder-picker (registerPlugin "FolderPicker"))
|
||||
(when (native-ios?)
|
||||
(defonce download-icloud-files (registerPlugin "DownloadiCloudFiles")))
|
||||
(when (native-ios?)
|
||||
(defonce ios-file-container (registerPlugin "FileContainer")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user