Skip to content

Optional env variable NODETMP for passing in a custom temporary directory that may or may not be located under the OS provided TMP directory #219

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

Closed
silkentrance opened this issue Jan 24, 2020 · 1 comment

Comments

@silkentrance
Copy link
Collaborator

silkentrance commented Jan 24, 2020

Users may pass an additional environment variable to the process, named NODETMP which will point to an existing temporary file system object storage location.

If the variable is unset, tmp will fall back to the standard, os provided temporary directory.

The dir option can be kept, however, all paths specified that option are now relative to the resolved temporary directory, see #207.

@silkentrance silkentrance changed the title Optional env variable TMPDIR for passing in a custom temporary directory that may or may not be located under the OS provided TMP directory Optional env variable NODETMP for passing in a custom temporary directory that may or may not be located under the OS provided TMP directory Jan 24, 2020
@silkentrance silkentrance self-assigned this Jan 24, 2020
@silkentrance
Copy link
Collaborator Author

silkentrance commented Jan 27, 2020

this is considered redundant at best. one can always pass in a tmp directory via the process environment and use the dir option to have specific dirs underneath that tmp directory. so there is no need for yet another environment variable. (YAEV)

also, that way, temporary files and directories are still under the regime of the operating system and will be cleaned on system restart, if everything else fails, unless of course the provided temporary directory path is not managed by the operating system. (YMMV)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant