code cleanup
This commit is contained in:
parent
816329ed96
commit
2b924bcf7a
15
src/main.rs
15
src/main.rs
|
@ -54,21 +54,6 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
/* for data_file in fs::read_dir(&args.path).unwrap().filter_map(Result::ok) {
|
||||
// ignore dirs
|
||||
if data_file.file_type().unwrap().is_file() {
|
||||
let path = data_file.path();
|
||||
|
||||
if !all_files.contains(&path) {
|
||||
println!("{}", path.display());
|
||||
|
||||
if args.change {
|
||||
fs::remove_file(path).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
if !args.change {
|
||||
println!("No changes were applied since flag `--change` was not set to true");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue