Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand-home is not working as expected on Windows #74

Closed
littleli opened this issue Sep 4, 2022 · 4 comments
Closed

expand-home is not working as expected on Windows #74

littleli opened this issue Sep 4, 2022 · 4 comments

Comments

@littleli
Copy link

littleli commented Sep 4, 2022

Small example:

(require '[babashka.fs :as fs])
(fs/expand-home "~/hello-world.bat")

prints

#object[sun.nio.fs.WindowsPath 0x42897f2f "C:\\Users\\hello-world.bat"]

But in my case the string part should be like:

C:\\Users\\alesn\\hello-world.bat

This means that actual user directory is omitted from the expansion.

@littleli
Copy link
Author

littleli commented Sep 4, 2022

Also check babashka/bbin#19

@borkdude
Copy link
Contributor

borkdude commented Sep 4, 2022

@littleli There has been a recent change around this. Can you check with fs from master?

@borkdude
Copy link
Contributor

borkdude commented Sep 4, 2022

See issue: #68

@borkdude
Copy link
Contributor

borkdude commented Sep 4, 2022

Closing as duplicate of #68

@borkdude borkdude closed this as completed Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants