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