pub fn delete_dir(path: &str) -> Result<(), Error>Expand description
Deletes a directory and all its contents.
-
path: The directory path to delete. -
Returns:
Ok(())if the directory and its contents were deleted successfully, or anErrwith the error details.