mirror of https://github.com/logseq/logseq
fix(fs): avoid EEXISTS error reporting for mkdir
parent
2318e850dd
commit
099cad5b64
|
@ -83,7 +83,7 @@
|
|||
(-> (ipc/ipc "mkdir" dir)
|
||||
(p/then (fn [_] (js/console.log (str "Directory created: " dir))))
|
||||
(p/catch (fn [error]
|
||||
(when (not= (.-code error) "EEXIST")
|
||||
(when-not (string/includes? (str error) "EEXIST")
|
||||
(js/console.error (str "Error creating directory: " dir) error))))))
|
||||
|
||||
(mkdir-recur! [_this dir]
|
||||
|
|
Loading…
Reference in New Issue