8 static void Main(
string[] args)
15 if (args[0] ==
"-f" || args[0] ==
"--find")
21 string pathToFolder = args[1];
26 Console.WriteLine(
"Path to folder is required");
29 else if (args[0] ==
"-d" || args[0] ==
"--display-duplicate-log")
34 else if (args[0] ==
"-c" || args[0] ==
"--clear-duplicate-log")
39 else if (args[0] ==
"-e" || args[0] ==
"--export-duplicate-log")
45 string exportPath = args[1];
54 else if (args[0] ==
"-v" || args[0] ==
"--verify-duplicate-log")
59 else if (args[0] ==
"-h" || args[0] ==
"--hash-file")
61 Console.WriteLine(
"Option Hash");
65 string pathToFile = args[1];
70 Console.WriteLine(
"Path to file is required");
77 Console.WriteLine(
"No arguments Inputted");
void ClearDuplicateFiles()
Method deletes all the data relating to duplicate files found.
void FindDuplicateFiles(string dir)
Method searches recursively to find duplicated files.
void HashIndividualFile(string filePath)
Method hashes an individual file.
void ExportDuplicateFiles()
Method exports the duplicate data in the same format as DisplayDuplicateFiles.
void DisplayDuplicateFiles()
Methods displays the duplicate files found including the original path.
void VerifyDuplicateFiles()
Method verifies that the files are in fact duplicates. This is needed as different files might create...