ignoring hidden directories
This commit is contained in:
parent
95e53b00ec
commit
775e915cfa
@ -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))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user