You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(fs/expand-home"~/my-file") ;; "C:\\Users\\my-file" incorrect, missing username directory when using forward slash in the argument
(fs/expand-home"~\\my-file") ;; "C:\\Users\\justin\\my-file" correct
(fs/expand-home (fs/path"~/my-file")) ;; "C:\\Users\\justin\\my-file" correct
This is because the current expand-home implementation just looks for the index of the path separator in the input. Calling as-path on the input within expand-home should fix this.
I will provide a PR for this today or tomorrow
The text was updated successfully, but these errors were encountered:
jjttjj
added a commit
to jjttjj/fs
that referenced
this issue
Aug 9, 2022
This is because the current
expand-home
implementation just looks for the index of the path separator in the input. Callingas-path
on the input withinexpand-home
should fix this.I will provide a PR for this today or tomorrow
The text was updated successfully, but these errors were encountered: