v2 #2

Merged
dzu merged 24 commits from dev into main 2026-02-21 11:06:58 +01:00
Showing only changes of commit bd2ba0b2e7 - Show all commits

ench: add warn for saving non-existent paths
All checks were successful
Build and update the action / build-and-upload (push) Successful in 2m37s

Artem Diachenko 2026-02-20 10:17:03 +00:00

View file

@ -42,6 +42,13 @@ fn main() -> Result<()> {
archive.mode(HeaderMode::Complete); archive.mode(HeaderMode::Complete);
archive.follow_symlinks(false); archive.follow_symlinks(false);
for path in path { for path in path {
if !path.exists() {
println!(
"warn: path {} does not exist, and will not be cached",
path.display()
);
continue;
}
if path.is_dir() { if path.is_dir() {
// we actually want to write out all the directory contents // we actually want to write out all the directory contents
archive.append_dir_all("", path).unwrap(); archive.append_dir_all("", path).unwrap();