electron: file watcher

This commit is contained in:
Tienson Qin
2021-01-23 19:02:23 +08:00
parent 26be1ff969
commit b3224d0869
7 changed files with 64 additions and 48 deletions

View File

@@ -1595,7 +1595,7 @@
(save-block! repo block content)
(when local?
;; FIXME: should be relative to current block page path
(fs/unlink! (str (config/get-repo-dir repo) (string/replace href #"^../" "/")) nil))))
(fs/unlink! (config/get-repo-path repo (string/replace href #"^../" "/")) nil))))
(defn upload-image
[id files format uploading? drop-or-paste?]