remove_managed_temp_dir

Function remove_managed_temp_dir 

Source
pub fn remove_managed_temp_dir(path: &Path) -> Result<()>
Expand description

Remove a managed temporary directory

Explicitly removes a temporary directory created by create_managed_temp_dir(). This should be called when the directory is no longer needed.

§Arguments

  • path - Path to the temporary directory to remove

§Errors

Returns an error if the directory cannot be removed.

§Examples

let temp_path = create_managed_temp_dir()?;
// ... do work ...
remove_managed_temp_dir(&temp_path)?;