Skip to main content

make_temp_dir

Function make_temp_dir 

Source
pub async fn make_temp_dir(prefix: &str) -> PathBuf
Expand description

Creates and returns a uniquely-named temp directory under the OS temp dir.

prefix should identify the calling module (e.g. "shine-fileops") so leftover directories from a failed test run are easy to trace back to their source.