Open soc opened 6 years ago
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 😉
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.