mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
refactor(fs): refine stat fn of Fs protocol
This commit is contained in:
@@ -379,10 +379,9 @@
|
||||
:to new-path}))
|
||||
(p/catch (fn [error]
|
||||
(log/error :copy-file-failed error))))))
|
||||
(stat [_this dir path]
|
||||
(let [path (fs2-path/path-join dir path)]
|
||||
(p/chain (.stat Filesystem (clj->js {:path path}))
|
||||
#(js->clj % :keywordize-keys true))))
|
||||
(stat [_this fpath]
|
||||
(p/chain (.stat Filesystem (clj->js {:path fpath}))
|
||||
#(js->clj % :keywordize-keys true)))
|
||||
(open-dir [_this dir _ok-handler]
|
||||
(open-dir dir))
|
||||
(list-files [_this dir _ok-handler]
|
||||
|
||||
Reference in New Issue
Block a user