From 484a9256434993a336cf35758e8e94b568b7c22a Mon Sep 17 00:00:00 2001 From: qpxdesign Date: Fri, 8 Mar 2024 11:48:05 -0500 Subject: [PATCH] fixed file sorting in cm read_folder, updated readme --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/utils/read_folder_conserve_memory.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0760605..810aef1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -655,7 +655,7 @@ dependencies = [ [[package]] name = "ngxav" -version = "0.5.2" +version = "0.5.3" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index bedf214..d825978 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ workspace = { members = [ "tests","tests/obfuscate_access_log_ips"] } [package] name = "ngxav" -version = "0.5.2" +version = "0.5.3" edition = "2021" license = "MIT" description = "Search through NGINX logs with advanced filters and support for displaying analytics about your selected log entries" diff --git a/src/utils/read_folder_conserve_memory.rs b/src/utils/read_folder_conserve_memory.rs index b62e387..8490a20 100644 --- a/src/utils/read_folder_conserve_memory.rs +++ b/src/utils/read_folder_conserve_memory.rs @@ -15,6 +15,7 @@ pub fn read_folder_conserve_memory(file_path: String, isUnique: Option) { .created() .unwrap() }); + paths.reverse(); let mut occurrences: HashMap = HashMap::new(); for path in paths { let p: String = path.unwrap().path().to_str().unwrap().to_string();