-
Notifications
You must be signed in to change notification settings - Fork 619
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
Add userHomeDir #521
Add userHomeDir #521
Conversation
80d8194
to
9346ca5
Compare
* On Unix, including macOS, it returns the $HOME environment variable. | ||
* On Windows, it returns %USERPROFILE%. | ||
* | ||
* Ported from Go: https://github.com/golang/go/blob/go1.12.5/src/os/file.go#L389 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add "Needs permissions to access env (--allow-env)."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
9346ca5
to
f7ea043
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
it looks superfluous for me. Isn't it better to implement in |
@axetroy I was thinking that too. We would be able to avoid the env access by adding an op. |
@ry I don't have enough experience with rust, but I tried denoland/deno#2578 |
closes denoland#469 --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
No description provided.