Piotr Czajkowski 5 months ago
parent
commit
410da6e664
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ProcessFiles/ProcessFiles.cs

+ 1 - 1
ProcessFiles/ProcessFiles.cs

@@ -14,7 +14,7 @@ namespace ProcessFiles
             try
             {
                 var attr = File.GetAttributes(path);
-                if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
+                if (attr.HasFlag(FileAttributes.Directory))
                     return Result.Directory;
 
                 return Result.File;