diff --git a/RedundancyFinder/Finder.cs b/RedundancyFinder/Finder.cs index 8ec7da6..0af1411 100644 --- a/RedundancyFinder/Finder.cs +++ b/RedundancyFinder/Finder.cs @@ -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)) {