File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static IEnumerable<AbsolutePath> GetFiles(
27
27
return Enumerable . Empty < AbsolutePath > ( ) ;
28
28
29
29
var files = Directory . EnumerateFiles ( path , pattern , SearchOption . TopDirectoryOnly )
30
- . Where ( x => ( File . GetAttributes ( x ) & attributes ) == 0 )
30
+ . Where ( x => ( File . GetAttributes ( x ) & attributes ) == attributes )
31
31
. OrderBy ( x => x )
32
32
. Select ( AbsolutePath . Create ) ;
33
33
@@ -50,7 +50,7 @@ public static IEnumerable<AbsolutePath> GetDirectories(
50
50
{
51
51
var matchingDirectories = paths
52
52
. SelectMany ( x => Directory . EnumerateDirectories ( x , pattern , SearchOption . TopDirectoryOnly ) )
53
- . Where ( x => ( File . GetAttributes ( x ) & attributes ) == 0 )
53
+ . Where ( x => ( File . GetAttributes ( x ) & attributes ) == attributes )
54
54
. OrderBy ( x => x )
55
55
. Select ( AbsolutePath . Create ) . ToList ( ) ;
56
56
You can’t perform that action at this time.
0 commit comments