dirs-dev / directories-rs

a mid-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and Windows
https://dirs.dev
Apache License 2.0
765 stars 34 forks source link

Cross-platform tmpfs / %TEMP% BaseDir #71

Open cryptoquick opened 2 years ago

cryptoquick commented 2 years ago

It would be useful to have a cross-platform way to get the tmp directory. On Mac and Linux, this should return the /tmp directory, on Windows it's held within the TEMP environment variable.

joshtriplett commented 2 years ago

This should respect the $TMPDIR environment variable on POSIX systems.

soc commented 2 years ago

Older discussion: https://github.com/dirs-dev/directories-rs/issues/43