-
-
Notifications
You must be signed in to change notification settings - Fork 44
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 #13
Comments
As some precedent, Python's similar function does expand Also, obviously there is: https://github.com/clj-commons/fs/blob/master/src/me/raynes/fs.clj#L23-L48 https://github.com/nate/fs/blob/master/src/nate/fs.clj#L55-L61 |
Would you accept a PR adding this function? |
@Kineolyan OK, let's go ahead. Please also add tests. |
Ok, thanks. I'll try to do it this week |
Because this is related, I am also working on #12 :) |
* Copy functions from raynes.me/fs. * Start writing tests. * Add tests for user expansion. * Complete tests for home expansion. * Add tests about expansion not applied. * Add a test for multiple ~ not to expand. * Add a warning about the assumptions for expand-home-test. * Replace immediate home resolution with a delayed one.
Should we add an expand-home function that expands a leading
~
into(System/getProperty "user.home")
?Questions:
~/foo/bar
asC:\Users\borkdude\foo\bar
on WindowsThe text was updated successfully, but these errors were encountered: