file_operation

Function delete_dir

Source
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 an Err with the error details.