Skip to content

Commit

Permalink
Remove logs_dir when the scan is finished.
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
Edu4rdSHL committed Aug 24, 2023
1 parent 36419c3 commit 7c6e717
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resolver_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ fn parallel_resolver_engine(
})
.collect();

// Delete the args.logs_dir directory if it's empty
if args.no_keep_nmap_logs && std::fs::remove_dir(&args.logs_dir).is_err() {
error!("Error removing directory {}.", &args.logs_dir)
}

resolv_data
.iter()
.map(|(target, resolv_data)| {
Expand Down

0 comments on commit 7c6e717

Please # to comment.