Let calling locations handle Stream state

This commit is contained in:
Matt Nadareski
2025-01-06 10:28:12 -05:00
parent 40fcf7924a
commit 3d3d22b5d3
6 changed files with 13 additions and 39 deletions

View File

@@ -332,7 +332,7 @@ namespace SabreTools.FileTypes.Archives
outDir = Path.GetFullPath(outDir);
// If the base file is null, get the hash information
baseFile ??= FileTypeTool.GetInfo(stream, _hashTypes, keepReadOpen: true);
baseFile ??= FileTypeTool.GetInfo(stream, _hashTypes);
// Get the output file name
string outfile = Path.Combine(outDir, Core.Tools.Utilities.GetDepotPath(baseFile.SHA1, Depth)!);