Skip to content

Conversation

@HeroponRikiBestest
Copy link
Contributor

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 > 0 on 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

@HeroponRikiBestest HeroponRikiBestest changed the title Fix oversight where Scanner.cs won't scan for files if an archive extracts to a directory Fix oversight where Scanner.cs won't scan for files if an archive extracts to one or more directories Nov 29, 2025
@mnadareski mnadareski merged commit c236866 into SabreTools:master Nov 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants