Function delete_dir

Source
pub fn delete_dir(path: &str) -> Result<(), Error>
Expand description

Deletes a directory and all its contents.

§Arguments

  • &str - The directory path to delete.

§Returns

  • Result<(), std::io::Error> - Ok if the directory was deleted successfully, Err with error details otherwise.