Skip to content

Commit

Permalink
fix(fs): normalize path when readdir
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and andelf committed Dec 29, 2022
1 parent df7e32a commit bbfaefa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/fs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
(p/let [result (protocol/readdir (get-fs dir) dir)
result (bean/->clj result)]
(if (and path-only? (map? (first result)))
(map :uri result)
result)))
(->> (map :uri result)
(map gp-util/path-normalize))
(map #(update % :uri gp-util/path-normalize) result))))

(defn unlink!
"Should move the path to logseq/recycle instead of deleting it."
Expand Down

0 comments on commit bbfaefa

Please sign in to comment.