Remove root files

This commit is contained in:
Zoey 2022-12-14 16:05:09 -08:00
parent 44cb77ab3f
commit 97b9fbf46d

View file

@ -106,10 +106,10 @@ fn remove(builder: &mut SiteBuilder, path: &Path, relative_path: &Path) -> anyho
.with_context(|| format!("Failed to remove file at {:?}", to_remove))?;
} else if let Ok(_sass_path) = relative_path.strip_prefix(SASS_PATH) {
builder.build_sass().context("Failed to rebuild Sass")?;
} else if let Ok(root_path) = relative_path.strip_prefix(ROOT_PATH) {
std::fs::remove_file(builder.build_path.join(root_path))?;
}
// Removing root files is not handled for the time being.
Ok(())
}