directories-rs
directories-rs copied to clipboard
Should something like temp_dir be added?
As far as I remember from the last time I looked into this, the problem was that operating systems had wildly different definitions of temp dirs and their usage.
That there exists a function is not indicative that its semantics make sense (similar to std::env::home_dir
).
I am also in favor of integrating that into this crate. std::env::temp_dir currently doesn't include MacOS (or does that use the same temp folder as Linux? i don't think so) so there would be some value for doing it here. And...also...for sake of completeness it should be available here 😉