Compare commits
2 Commits
b1b24593ef
...
775e915cfa
| Author | SHA1 | Date | |
|---|---|---|---|
| 775e915cfa | |||
| 95e53b00ec |
@ -40,6 +40,13 @@ namespace RedundancyFinder
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// Check if the directory is hidden and skip it if true
|
||||||
|
var attributes = File.GetAttributes(directoryPath);
|
||||||
|
if ((attributes & FileAttributes.Hidden) == FileAttributes.Hidden)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Process files in the current directory
|
// Process files in the current directory
|
||||||
foreach (var file in Directory.GetFiles(directoryPath))
|
foreach (var file in Directory.GetFiles(directoryPath))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -153,11 +153,11 @@ namespace RedundancyFinderCLI
|
|||||||
{
|
{
|
||||||
foreach (var redundancy in finder.Redundancies.Values)
|
foreach (var redundancy in finder.Redundancies.Values)
|
||||||
{
|
{
|
||||||
AnsiConsole.MarkupLine($"Hash: {redundancy.Hash}");
|
AnsiConsole.WriteLine($"Hash: {redundancy.Hash}");
|
||||||
AnsiConsole.MarkupLine("Paths:");
|
AnsiConsole.WriteLine("Paths:");
|
||||||
foreach (var path in redundancy.Paths)
|
foreach (var path in redundancy.Paths)
|
||||||
{
|
{
|
||||||
AnsiConsole.MarkupLine(path);
|
AnsiConsole.WriteLine(path);
|
||||||
}
|
}
|
||||||
AnsiConsole.WriteLine();
|
AnsiConsole.WriteLine();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user