From cbcc11547c673bc48369ca04242169c7a8c31fc0 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 20 Sep 2025 16:01:44 -0400 Subject: [PATCH] This should have a debug statement too --- BinaryObjectScanner/Scanner.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index 6033d734..d8d68ddc 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -267,10 +267,13 @@ namespace BinaryObjectScanner { // Quick sanity check before continuing if (!stream.CanRead) + { + if (_includeDebug) Console.WriteLine($"{fileName} does not have a readable stream, skipping..."); return []; + } // Initialize the protections found - var protections = new ProtectionDictionary(); + var protections = new ProtectionDictionary(); // Get the extension for certain checks string extension = Path.GetExtension(fileName).ToLower().TrimStart('.');