mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-03 21:29:23 +00:00
[PR #397] [MERGED] Fix oversight where Scanner.cs won't scan for files if an archive extracts to one or more directories #542
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/BinaryObjectScanner/pull/397
Author: @HeroponRikiBestest
Created: 11/29/2025
Status: ✅ Merged
Merged: 11/29/2025
Merged by: @mnadareski
Base:
master← Head:patch-3📝 Commits (2)
29b4fe7Scanner.cs won't scan for files if an archive extracts to a directory26887c8use fsentries📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
BinaryObjectScanner/Scanner.cs(+1 -1)📄 Description
At the moment, scanner.cs determines whether scanning needs to be done to any files extracted from an archive by checking
IOExtensions.SafeGetFiles(tempPath).Length > 0on the extracted path. Some archives extract to one or more top-level directories that contain files within themselves, resulting in nothing being scanned. This PR checks the number of directories too. Unsure if you'd want to have some sort of logic to check if the directories are empty or not.Example archive, if needed (unrar.7z):
unrar.7z.zip
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.