From bb52edc4c8daaadc2181375b90a02ca48e0d02fe Mon Sep 17 00:00:00 2001 From: William Desportes Date: Fri, 20 Sep 2024 21:14:50 +0200 Subject: [PATCH] Fix path for files --- snow-scanner/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snow-scanner/src/main.rs b/snow-scanner/src/main.rs index 11663ee..991d05a 100644 --- a/snow-scanner/src/main.rs +++ b/snow-scanner/src/main.rs @@ -289,6 +289,7 @@ async fn handle_get_collection( let mut path: PathBuf = PathBuf::new(); let static_data_dir: String = static_data_dir.into_inner().to_string(); path.push(static_data_dir); + path.push("collections"); path.push(vendor_name.to_string()); path.push(file_name.to_string()); match NamedFile::open(path) { @@ -310,6 +311,7 @@ async fn handle_list_scanners( if scanner_name.is_static() { let mut path: PathBuf = PathBuf::new(); path.push(static_data_dir); + path.push("scanners"); path.push(scanner_name.to_string()); return match NamedFile::open(path) {