You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FilesCore/Duplicates.cs
+32-12Lines changed: 32 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -15,35 +15,55 @@ public class Duplicates : IUtil
15
15
publicstringName=>"duplicates";
16
16
publicstringInfo=>
17
17
"Detects file duplicates in one or more folders by comparing sizes, names or data hashes."+Environment.NewLine+
18
-
"There are extension and size filters as well as an option for partial hashing by skip/taking portions of the files.";
18
+
"There are extension and size filters as well as an option for partial hashing by skip/taking portions of the files."+Environment.NewLine+
19
+
"Args: not interactive (-ni), dirs to search into separated by semicolons (-dirs), search pattern (-sp), recursive (-rec), compare with hash (-hash), parallel (-j) ";
19
20
20
21
publicintRun(RunArgsra)
21
22
{
23
+
boolinteractive=!ra.InArgs.ContainsKey("-ni");
24
+
22
25
varsrcDirs=newList<DirectoryInfo>();
23
26
varsrcs=string.Empty;
24
27
varskipLessThanSize=1;
25
28
varskipMoreThanSize=-1;
26
29
varignExt=string.Empty;
27
30
variExt=newList<string>();
31
+
varcompHash=false;
32
+
varrecursive=false;
33
+
varinParallel=1;
28
34
29
-
Utils.ReadString("Enter folders to search into, separated by semicolon: ",refsrcs,true);
0 commit comments