-
Notifications
You must be signed in to change notification settings - Fork 98
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
temp dir #93
Comments
Hi Comithon, I'm not really clear on how we could set the proper defaults particularly on linx/Mac. For example on linux /tmp and /var/tmp are recommended for inter-process communications, not for temp files in general. We could use the user_data_dir potentially? Not really sure of all the implications here. Windows is straight forward though. I'd have to look into macOS. I'd love to hear some opinions on this for the various platforms before I code it up. |
Hi, |
According to the Linux FHS, /tmp and /var/tmp would both be appropriate. /tmp is available "for programs that require temporary files" and /var/tmp/ is the same for files that are expected to survive a reboot. macOS shares the same definitions (according to I would expect in both cases for code to honor the contents of the TMP or TEMP environment variable first (if that exists) and fall back on /tmp or /var/tmp secondarily. For user temp directory in macOS the contents of TMPDIR should be used, which is dynamically generated by the OS as a secure location only accessible by the current user. |
Isn't this in most cases already solved by |
Already supported by standard library in python 2 and 3. |
hi!
It will be very useful (at least for me), if there would be
user_temp_dir
orsystem_temp_dir
.Are there any plans to add one?
Thanks!
The text was updated successfully, but these errors were encountered: