chore: rm unused code

This commit is contained in:
Andelf
2022-09-20 12:02:49 +08:00
parent f40ab3552f
commit c6ff4e8084

View File

@@ -62,12 +62,7 @@
(defn- <stat [path]
(-> (p/chain (.stat Filesystem (clj->js {:path path}))
#(js->clj % :keywordize-keys true)
#(update % :type (fn [v]
(case v
"NSFileTypeDirectory" "directory"
"NSFileTypeRegular" "file"
v))))
#(js->clj % :keywordize-keys true))
(p/catch (fn [error]
(js/console.error "stat Error: " path ": " error)
nil))))