Function create_or_cleanup_dir

Source
pub fn create_or_cleanup_dir(dir: impl AsRef<Utf8Path>) -> Result<()>
Expand description

Create a new directory if it doesn’t exist, or remove all its contents if exists.