Browse Source

fix(android): don't read files started with #

`(.stat Filesystem (clj->js {:path file}))` returns its parent directory
if the file starting with a #, which leads to reading the directory endlessly.
leizhe 4 năm trước cách đây
mục cha
commit
6109836dbc
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/main/frontend/fs/capacitor_fs.cljs

+ 1 - 0
src/main/frontend/fs/capacitor_fs.cljs

@@ -47,6 +47,7 @@
                              files (->> files
                                         (remove (fn [file]
                                                   (or (string/starts-with? file ".")
+                                                      (string/starts-with? file "#")
                                                       (= file "bak")))))
                              files (->> files
                                         (map (fn [file]