Fork me on GitHub
#babashka
<
2022-08-08
>
jjttjj13:08:00

For babashka.fs on Windows: not sure if this worth changing, but figured I'd mention it:

(fs/expand-home "~/my-file") ;; "C:\\Users\\my-file" (missing username directory when using forward slash)
 (fs/expand-home "~\\my-file") ;;"C:\\Users\\justin\\my-file" ("correct")
 (fs/expand-home (fs/path "~/my-file")) ;;"C:\\Users\\justin\\my-file" ("correct")
Should expand-home call fs/path on its arg? I try to avoid backslashes in paths as much as possible and generally it works throughout the java ecosystem

borkdude14:08:45

@jjttjj yes, this is worth changing, thanks for spotting this

👍 2
borkdude14:08:33

@jjttjj Can you post an issue (+ optionally a PR)?