refactor(fs): rm callback usage from fs protocol

This commit is contained in:
Andelf
2023-03-14 13:14:36 +08:00
parent c3daeae6eb
commit a38e40bf86
10 changed files with 66 additions and 116 deletions

View File

@@ -379,10 +379,9 @@
(stat [_this fpath]
(p/chain (.stat Filesystem (clj->js {:path fpath}))
#(js->clj % :keywordize-keys true)))
(open-dir [_this dir _ok-handler]
(open-dir [_this dir]
(open-dir dir))
(list-files [_this dir _ok-handler]
(prn ::readdir dir)
(get-files [_this dir]
(readdir dir))
(watch-dir! [_this dir _options]
(p/do!