mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
enhance: wip improve file watcher
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
(cond
|
||||
(= "add" type)
|
||||
(when-not (db/file-exists? repo path)
|
||||
(let [_ (file-handler/alter-file repo path content {:re-render-root? true
|
||||
:from-disk? true})]
|
||||
(db/set-file-last-modified-at! repo path mtime)))
|
||||
(let [_ (file-handler/alter-file repo path content {:re-render-root? true
|
||||
:from-disk? true})]
|
||||
(db/set-file-last-modified-at! repo path mtime)))
|
||||
|
||||
(and (= "change" type)
|
||||
(not (db/file-exists? repo path)))
|
||||
|
||||
Reference in New Issue
Block a user