Compare commits
2 Commits
b1b24593ef
...
775e915cfa
| Author | SHA1 | Date | |
|---|---|---|---|
| 775e915cfa | |||
| 95e53b00ec |
@ -40,6 +40,13 @@ namespace RedundancyFinder
|
||||
{
|
||||
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
|
||||
foreach (var file in Directory.GetFiles(directoryPath))
|
||||
{
|
||||
|
||||
@ -153,11 +153,11 @@ namespace RedundancyFinderCLI
|
||||
{
|
||||
foreach (var redundancy in finder.Redundancies.Values)
|
||||
{
|
||||
AnsiConsole.MarkupLine($"Hash: {redundancy.Hash}");
|
||||
AnsiConsole.MarkupLine("Paths:");
|
||||
AnsiConsole.WriteLine($"Hash: {redundancy.Hash}");
|
||||
AnsiConsole.WriteLine("Paths:");
|
||||
foreach (var path in redundancy.Paths)
|
||||
{
|
||||
AnsiConsole.MarkupLine(path);
|
||||
AnsiConsole.WriteLine(path);
|
||||
}
|
||||
AnsiConsole.WriteLine();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user