mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add back dupe checking as well
This commit is contained in:
@@ -425,9 +425,9 @@ namespace SabreTools.DatTools
|
||||
if (RebuildTorrentXz(datFile, datItem, file, outDir, outputFormat, isZip))
|
||||
return true;
|
||||
|
||||
// Create a temp file if we're compressing the data after
|
||||
// Create a temp file if we're compressing the data after or if there are multiple dupes
|
||||
string? tempFile = null;
|
||||
if (outputFormat != OutputFormat.Folder)
|
||||
if (outputFormat != OutputFormat.Folder || dupes.Count > 1)
|
||||
{
|
||||
tempFile = Path.Combine(outDir, $"tmp{System.Guid.NewGuid()}");
|
||||
Stream tempStream = System.IO.File.Open(tempFile, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite);
|
||||
|
||||
Reference in New Issue
Block a user