File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . IO ;
4- using System . Linq ;
54using BinaryObjectScanner . Data ;
65using BinaryObjectScanner . FileType ;
76using BinaryObjectScanner . Interfaces ;
@@ -100,7 +99,7 @@ public ProtectionDictionary GetProtections(List<string>? paths)
10099 if ( Directory . Exists ( path ) )
101100 {
102101 // Enumerate all files at first for easier access
103- var files = IOExtensions . SafeGetFiles ( path , "*" , SearchOption . AllDirectories ) . ToList ( ) ;
102+ List < string > files = [ .. IOExtensions . SafeGetFiles ( path , "*" , SearchOption . AllDirectories ) ] ;
104103
105104 // Scan for path-detectable protections
106105 if ( _options . ScanPaths )
@@ -113,7 +112,7 @@ public ProtectionDictionary GetProtections(List<string>? paths)
113112 for ( int i = 0 ; i < files . Count ; i ++ )
114113 {
115114 // Get the current file
116- string file = files . ElementAt ( i ) ;
115+ string file = files [ i ] ;
117116
118117 // Get the reportable file name
119118 string reportableFileName = file ;
You can’t perform that action at this time.
0 commit comments