Added Number of files in -d option
This commit is contained in:
parent
8284655f04
commit
d2be9b368b
2 changed files with 27 additions and 8 deletions
31
.idea/workspace.xml
generated
31
.idea/workspace.xml
generated
|
@ -9,12 +9,9 @@
|
||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="Fixed another Random Crash that happened when a file size is near 0">
|
<list default="true" id="9b57ac51-c870-474b-9dfd-64a5fc490635" name="Changes" comment="Simplify code in ThreadedCompare.java and added option for debuging with -debug">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_rebase__Changes_.xml" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/ThreadedCompare.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ThreadedCompare.java" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -31,6 +28,13 @@
|
||||||
<component name="Git.Rebase.Settings">
|
<component name="Git.Rebase.Settings">
|
||||||
<option name="NEW_BASE" value="master" />
|
<option name="NEW_BASE" value="master" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="PREVIOUS_COMMIT_AUTHORS">
|
||||||
|
<list>
|
||||||
|
<option value="Lia Brueggemann <brueggemann.l@proton.me>" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
<component name="GithubPullRequestsUISettings">
|
<component name="GithubPullRequestsUISettings">
|
||||||
<option name="selectedUrlAndAccountId">
|
<option name="selectedUrlAndAccountId">
|
||||||
<UrlAndAccount>
|
<UrlAndAccount>
|
||||||
|
@ -153,7 +157,21 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1672874587158</updated>
|
<updated>1672874587158</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="11" />
|
<task id="LOCAL-00011" summary="Simplify code in ThreadedCompare.java and added option for debuging with -debug">
|
||||||
|
<created>1674655068301</created>
|
||||||
|
<option name="number" value="00011" />
|
||||||
|
<option name="presentableId" value="LOCAL-00011" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1674655068301</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00012" summary="Simplify code in ThreadedCompare.java and added option for debuging with -debug">
|
||||||
|
<created>1674655119812</created>
|
||||||
|
<option name="number" value="00012" />
|
||||||
|
<option name="presentableId" value="LOCAL-00012" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1674655119812</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="13" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
@ -187,7 +205,8 @@
|
||||||
<MESSAGE value="test" />
|
<MESSAGE value="test" />
|
||||||
<MESSAGE value="fixed A bug where it just randomly crashes and added the ability to delete duplicate files with -d paramater" />
|
<MESSAGE value="fixed A bug where it just randomly crashes and added the ability to delete duplicate files with -d paramater" />
|
||||||
<MESSAGE value="Fixed another Random Crash that happened when a file size is near 0" />
|
<MESSAGE value="Fixed another Random Crash that happened when a file size is near 0" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Fixed another Random Crash that happened when a file size is near 0" />
|
<MESSAGE value="Simplify code in ThreadedCompare.java and added option for debuging with -debug" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Simplify code in ThreadedCompare.java and added option for debuging with -debug" />
|
||||||
</component>
|
</component>
|
||||||
<component name="XDebuggerManager">
|
<component name="XDebuggerManager">
|
||||||
<breakpoint-manager>
|
<breakpoint-manager>
|
||||||
|
|
|
@ -153,9 +153,9 @@ public class Main {
|
||||||
}
|
}
|
||||||
public static void ask(boolean color, long bytes, List<Path> deleteThem) {
|
public static void ask(boolean color, long bytes, List<Path> deleteThem) {
|
||||||
if (color) {
|
if (color) {
|
||||||
System.out.println(ConsoleColors.RED_BOLD + (bytes / 8000000) + " unnecessary MB found, do you want to Delete them? Y / N" + ConsoleColors.RESET);
|
System.out.println(ConsoleColors.RED_BOLD + (bytes / 8000000) + " unnecessary MB in " + deleteThem.size() + " Files found, do you want to Delete them? Y / N" + ConsoleColors.RESET);
|
||||||
} else {
|
} else {
|
||||||
System.out.println((bytes / 8000000) + " unnecessary MB found, do you want to Delete them? Y / N");
|
System.out.println((bytes / 8000000) + " unnecessary MB in " + deleteThem.size() + " Files found, do you want to Delete them? Y / N");
|
||||||
}
|
}
|
||||||
Scanner input = new Scanner(System.in);
|
Scanner input = new Scanner(System.in);
|
||||||
String answer = input.next();
|
String answer = input.next();
|
||||||
|
|
Reference in a new issue