Skip to content

Commit

Permalink
Windows fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Mar 13, 2021
1 parent 44ac83b commit 94825b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/babashka/fs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@
([root pattern] (glob root pattern nil))
([root pattern {:keys [hidden follow-links max-depth]}]
(let [base-path (absolutize root)
base-path (if windows?
(str/replace base-path file-separator (str "\\" file-separator))
base-path)
skip-hidden? (not hidden)
results (atom (transient []))
past-root? (volatile! nil)
Expand Down

0 comments on commit 94825b6

Please sign in to comment.