Check for existence of preprocessed files

This commit is contained in:
Dennis 2024-05-30 14:46:45 +02:00
parent 80eb71ded5
commit 97bd968b2a
No known key found for this signature in database
GPG Key ID: 6937EAEA33A3FA5D

View File

@ -207,6 +207,12 @@ fn request_nearest(world: &mut OSRMWorld, step: &Step) {
}
// if extracted file does not exist
let cache_path = cache_path.join(&world.osrm_digest);
if cache_path.exists() {
println!("{cache_path:?} exists");
} else {
println!("{cache_path:?} does not exist");
}
// extract osm file (partition, preprocess)
// parse table from Step and build query list