This should have a debug statement too

This commit is contained in:
Matt Nadareski
2025-09-20 16:01:44 -04:00
parent 10286e8380
commit cbcc11547c

View File

@@ -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('.');