1
Fork 0

Merge commit '6d35b4c9a0' into sync_cg_clif-2024-09-22

This commit is contained in:
bjorn3 2024-09-23 11:20:46 +00:00
commit b40fe1ee28
31 changed files with 487 additions and 347 deletions

View file

@ -1,7 +1,7 @@
use std::fs;
use std::path::PathBuf;
use crate::utils::remove_dir_if_exists;
use crate::utils::ensure_empty_dir;
#[derive(Debug, Clone)]
pub(crate) struct Dirs {
@ -64,7 +64,6 @@ impl RelPath {
pub(crate) fn ensure_fresh(&self, dirs: &Dirs) {
let path = self.to_path(dirs);
remove_dir_if_exists(&path);
fs::create_dir_all(path).unwrap();
ensure_empty_dir(&path);
}
}