feat(ios): add polling based file watcher

This commit is contained in:
Andelf
2022-02-24 18:36:58 +08:00
parent f1aff93807
commit b260648b60
10 changed files with 302 additions and 85 deletions

View File

@@ -179,8 +179,7 @@
(state/add-repo! {:url repo :nfs? true})
(state/set-loading-files! repo false)
(when ok-handler (ok-handler))
(when (util/electron?)
(fs/watch-dir! dir-name))
(fs/watch-dir! dir-name)
(db/persist-if-idle! repo)))))
(p/catch (fn [error]
(log/error :nfs/load-files-error repo)