pub fn create_or_cleanup_dir(dir: impl AsRef<Utf8Path>) -> Result<()>
Create a new directory if it doesn’t exist, or remove all its contents if exists.