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

realpath should expand tilde to homedir #5011

Closed
infusion opened this issue Jan 31, 2016 · 3 comments
Closed

realpath should expand tilde to homedir #5011

infusion opened this issue Jan 31, 2016 · 3 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. feature request Issues that request new features to be added to Node.js. fs Issues and PRs related to the fs subsystem / file system.

Comments

@infusion
Copy link

Hi,

I was wondering if I could translate a path beginning with a tilde to the users home path by using realpath. The docs say, there is os.homedir(), but it would be cool if realpath could do this without having to replace "~" with the output of os.homedir(). Do you think this would be a good extension? I've seen, PHP has this behavior as well.

Thanks

@mscdex mscdex added fs Issues and PRs related to the fs subsystem / file system. feature request Issues that request new features to be added to Node.js. labels Jan 31, 2016
@mscdex
Copy link
Contributor

mscdex commented Jan 31, 2016

That might be fine for *nix users, but it would probably be a rude awakening for Windows users.

@cjihrig
Copy link
Contributor

cjihrig commented Jan 31, 2016

Duplicate of #684.

@mscdex mscdex added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Jan 31, 2016
@jbergstroem
Copy link
Member

Closing as duplicate since the old issue seems to cover your use case. Feel free to ping for reopen if that's not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. feature request Issues that request new features to be added to Node.js. fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

No branches or pull requests

4 participants