From 29b4fe73a95c5d817146d7329a0a42ff7a23d3b4 Mon Sep 17 00:00:00 2001 From: HeroponRikiBestest <50224630+HeroponRikiBestest@users.noreply.github.com> Date: Sat, 29 Nov 2025 14:37:04 -0500 Subject: [PATCH 1/2] Scanner.cs won't scan for files if an archive extracts to a directory --- BinaryObjectScanner/Scanner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index 5ee8f553..d32d317e 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -378,7 +378,7 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre _ = extractable.Extract(tempPath, _includeDebug); // Check if any files extracted - if (IOExtensions.SafeGetFiles(tempPath).Length > 0) + if (IOExtensions.SafeGetFiles(tempPath).Length > 0 || IOExtensions.SafeGetDirectories(tempPath).Length > 0) { // Scan the output path var subProtections = GetProtectionsImpl(tempPath, depth + 1); From 26887c811ba79f963e0d9ea07c77e3d4213cb692 Mon Sep 17 00:00:00 2001 From: HeroponRikiBestest <50224630+HeroponRikiBestest@users.noreply.github.com> Date: Sat, 29 Nov 2025 14:46:43 -0500 Subject: [PATCH 2/2] use fsentries --- BinaryObjectScanner/Scanner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index d32d317e..bea941aa 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -378,7 +378,7 @@ private ProtectionDictionary GetInternalProtections(string fileName, Stream stre _ = extractable.Extract(tempPath, _includeDebug); // Check if any files extracted - if (IOExtensions.SafeGetFiles(tempPath).Length > 0 || IOExtensions.SafeGetDirectories(tempPath).Length > 0) + if (IOExtensions.SafeGetFileSystemEntries(tempPath).Length > 0) { // Scan the output path var subProtections = GetProtectionsImpl(tempPath, depth + 1);