pub fn temp_dir() -> Result<NativePathBuf>Expand description
Returns the path of a temporary directory as NativePathBuf.
§Errors
Returns an Err if unable to parse the path with the native encoding.
§Examples
fn main() -> std::io::Result<()> {
let path = typed_path::utils::temp_dir()?;
println!("The temporary directory path is {}", path.display());
Ok(())
}