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

Add userHomeDir #521

Merged
merged 1 commit into from
Jun 24, 2019
Merged

Add userHomeDir #521

merged 1 commit into from
Jun 24, 2019

Conversation

ekaragodin
Copy link
Contributor

No description provided.

@ekaragodin ekaragodin force-pushed the add-os-user-home-dir branch 2 times, most recently from 80d8194 to 9346ca5 Compare June 24, 2019 11:40
* 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
Copy link
Member

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)."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks!

@ry ry merged commit ff7fb5a into denoland:master Jun 24, 2019
@axetroy
Copy link
Contributor

axetroy commented Jun 24, 2019

it looks superfluous for me.

Isn't it better to implement in Deno.homedir()?

@ry
Copy link
Member

ry commented Jun 24, 2019

@axetroy I was thinking that too. We would be able to avoid the env access by adding an op.

@ekaragodin
Copy link
Contributor Author

@ry I don't have enough experience with rust, but I tried denoland/deno#2578

@ekaragodin ekaragodin deleted the add-os-user-home-dir branch June 25, 2019 07:23
ry pushed a commit to ry/deno that referenced this pull request Oct 9, 2019
inverted-capital pushed a commit to dreamcatcher-tech/napps that referenced this pull request Oct 24, 2024
closes denoland#469

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
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

Successfully merging this pull request may close these issues.

3 participants