Simplify code in ThreadedCompare.java and added option for debuging with -debug

This commit is contained in:
Lia Brueggemann 2023-01-25 14:57:40 +01:00
parent 680bf4c99e
commit 8284655f04
5 changed files with 17 additions and 119 deletions

View file

@ -21,6 +21,7 @@ public class Main {
boolean showProgress = false;
boolean deleteDups = false;
boolean recordFolder = false;
boolean showDebug = false;
List<String> paths = new ArrayList<>();
@ -35,6 +36,7 @@ public class Main {
if (i.equalsIgnoreCase("-p") || i.equalsIgnoreCase("-progress")) { showProgress = true;}
if (i.equalsIgnoreCase("-f") || i.equalsIgnoreCase("-folder")) { recordFolder = true;}
if (i.equalsIgnoreCase("-d") || i.equalsIgnoreCase("-delete")) { deleteDups = true;}
if (i.equalsIgnoreCase("-debug")) { showDebug = true;}
}
@ -43,9 +45,13 @@ public class Main {
return;
}
/*System.out.println("Folders: " + paths.size());
System.out.println("Color: " + doTheColorThingy);
System.out.println("Progressbar: " + showProgress); */
if (showDebug) {
System.out.println("Folders: " + paths.size());
System.out.println("Color: " + doTheColorThingy);
System.out.println("Delete: " + deleteDups);
System.out.println("Progressbar: " + showProgress);
}
List<Path> pathList = new ArrayList<>();
List<Path> allFiles = new ArrayList<>();