directories-rs icon indicating copy to clipboard operation
directories-rs copied to clipboard

Should something like temp_dir be added?

Open soc opened this issue 6 years ago • 3 comments

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.

soc avatar Aug 15 '18 21:08 soc

use std::env::temp_dir

sigoden avatar Mar 01 '19 02:03 sigoden

That there exists a function is not indicative that its semantics make sense (similar to std::env::home_dir).

soc avatar Mar 01 '19 08:03 soc

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 😉

Weasy666 avatar May 25 '19 15:05 Weasy666