pub fn delete_directory(path: String) -> Result<()>