-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
doc: add documentation about os.tmpdir() overrides #54613
Conversation
This documents the TMPDIR, TEMP and TMP overrides on different platforms and that some operating systems set these by default.
`TEMP` takes precedence over `TMP`. If neither is set, it defaults to `%SystemRoot%\temp` | ||
or `%windir%\temp`. | ||
|
||
On non-Windows platforms, `TMPDIR`, `TMP` and `TEMP` environment variables will be checked |
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.
It feels strange to me that TMP
and TEMP
are checked in different order on Windows and non-Windows platforms. Maybe it would be better to make it consistent, but then that should be done in a different PR.
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
Landed in 9bdf2ee |
This documents the TMPDIR, TEMP and TMP overrides on different platforms and that some operating systems set these by default. PR-URL: nodejs#54613 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This documents the TMPDIR, TEMP and TMP overrides on different platforms and that some operating systems set these by default. PR-URL: #54613 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This documents the TMPDIR, TEMP and TMP overrides on different platforms and that some operating systems set these by default.
/var/folders
by default, and I found an article explaining this https://magnusviri.com/what-is-var-folders.htmlTMPDIR
seems unconfigured, soos.tmpdir()
tends to default to/tmp
which matches my memory.