Skip to main content

temp_dir

Function temp_dir 

Source
pub fn temp_dir() -> Option<PathBuf>
Expand description

The system’s shared temporary directory ($TMPDIR or /tmp, %TEMP%), and None where there is no native file system (the web), where std::env::temp_dir panics instead. For scratch files that must have a native path; an app’s own scratch space is AppPaths::runtime.