diff --git a/Cargo.toml b/Cargo.toml index 2301a5f..a065952 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sys-compare" description = "Track Filesystem Integrity via 'Snapshots' which contain a HashMap of the files and their corresponding hash signature from a specified directory." -version = "0.1.9" +version = "0.2.0" edition = "2021" authors = ["james@koonts.net"] license = "MIT" diff --git a/src/createmode.rs b/src/createmode.rs index e08993d..e13906e 100644 --- a/src/createmode.rs +++ b/src/createmode.rs @@ -25,11 +25,7 @@ impl CreateMode { root_path, snapshot: Snapshot { file_hashes: Arc::new(Mutex::new(Default::default())), - black_list: vec![ - "/dev".to_string(), - "/proc".to_string(), - "/tmp".to_string(), - ], + black_list: vec![], root_path: "".to_string(), hash_type: BLAKE3, uuid: "".to_string(), @@ -41,7 +37,11 @@ impl CreateMode { impl CreateMode { pub fn run(&mut self) -> Result<(), Error> { - let snapshot = create_snapshot(self.root_path.as_str(), BLAKE3, vec![])?; + let snapshot = create_snapshot(self.root_path.as_str(), BLAKE3, vec![ + "/dev".to_string(), + "/proc".to_string(), + "/tmp".to_string(), + ])?; self.snapshot = snapshot.clone(); if let Ok(e) = snapshot.file_hashes.lock() { println!("Total FileHash Entries {}", e.len());