Skip to content

Commit c236866

Browse files
Fix oversight where Scanner.cs won't scan for files if an archive extracts to one or more directories (#397)
* Scanner.cs won't scan for files if an archive extracts to a directory * use fsentries
1 parent 05bddd6 commit c236866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BinaryObjectScanner/Scanner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre
378378
_ = extractable.Extract(tempPath, _includeDebug);
379379

380380
// Check if any files extracted
381-
if (IOExtensions.SafeGetFiles(tempPath).Length > 0)
381+
if (IOExtensions.SafeGetFileSystemEntries(tempPath).Length > 0)
382382
{
383383
// Scan the output path
384384
var subProtections = GetProtectionsImpl(tempPath, depth + 1);

0 commit comments

Comments
 (0)