pub(crate) fn remove_folder(path: impl AsRef<Path>) -> Result<()>Expand description
Removes a directory and all its contents recursively.
This function wraps std::fs::remove_dir_all with additional error context
to provide meaningful error messages when directory removal fails.
§Arguments
path- Path to the directory to remove
§Returns
Ok(())if directory was successfully removedErrwith context if removal failed
§Examples
remove_folder(Path::new("temporary_files"))?;