Skip to main content

cleanup_temp_dir

Function cleanup_temp_dir 

Source
pub async fn cleanup_temp_dir(path: impl AsRef<Path>)
Expand description

Removes a temporary directory tree, ignoring missing directories and logging other failures.

DirectoryNotEmpty is retried because some platforms and filesystem watchers can briefly create files while a recursive removal is in progress.