mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SimpleSort] Fix normal deep scanning
This commit is contained in:
@@ -446,6 +446,25 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// If the file isn't an archive, skip out sooner
|
||||||
|
if (ArchiveTools.GetCurrentArchiveType(input, _logger) == null)
|
||||||
|
{
|
||||||
|
// Remove the current file if we are in recursion so it's not picked up in the next step
|
||||||
|
if (recurse)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
File.Delete(input);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.Error(ex.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
// Now, if the file is a supported archive type, also run on all files within
|
// Now, if the file is a supported archive type, also run on all files within
|
||||||
bool encounteredErrors = !ArchiveTools.ExtractArchive(input, _tempdir, _7z, _gz, _rar, _zip, _logger);
|
bool encounteredErrors = !ArchiveTools.ExtractArchive(input, _tempdir, _7z, _gz, _rar, _zip, _logger);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user