Skip to content

Commit 29b4fe7

Browse files
Scanner.cs won't scan for files if an archive extracts to a directory
1 parent 05bddd6 commit 29b4fe7

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.SafeGetFiles(tempPath).Length > 0 || IOExtensions.SafeGetDirectories(tempPath).Length > 0)
382382
{
383383
// Scan the output path
384384
var subProtections = GetProtectionsImpl(tempPath, depth + 1);

0 commit comments

Comments
 (0)