handle checking for file better

This commit is contained in:
2025-10-09 23:00:11 -06:00
parent 73216f7003
commit 2c339a36f9
2 changed files with 7 additions and 1 deletions

View File

@@ -52,7 +52,10 @@ pub async fn check_file_length(file: &PathBuf) -> Option<u64> {
}
},
Err(err) => {
error!("Failed to open file for testing... {:?} {}", file, err);
match err.kind() {
ErrorKind::NotFound => {/* ignore */},
_ => warn!("Failed to open file to check length. {:?} {}", file, err),
}
},
}
None

View File

@@ -246,6 +246,9 @@ async fn process(mut site: Website, db: Surreal<Client>, reqwest: reqwest::Clien
if disk_len == len {
skip_download = true;
}
} else {
// File not found (or other error).
// Program will continue on it's way, downloading content.
}
}
}