Skip to content

Commit

Permalink
Preserve file provider protocol for path (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk authored Dec 4, 2024
1 parent 7565e00 commit f006ea9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/babashka/fs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
(^Path [f]
(as-path f))
(^Path [parent child]
(as-path (io/file (as-file parent) (as-file child))))
(if parent
(.resolve (as-path parent) (as-path child))
(as-path child)))
(^Path [parent child & more]
(reduce path (path parent child) more)))

Expand Down

0 comments on commit f006ea9

Please sign in to comment.