[SevenZipArchive, XZArchive, Utilities] Cleanup including temp path

This commit is contained in:
Matt Nadareski
2017-12-05 15:08:46 -08:00
parent f1d1b2e9e5
commit af0ab5a10e
3 changed files with 4 additions and 5 deletions

View File

@@ -396,7 +396,7 @@ namespace SabreTools.Library.FileTypes
};
// Create the temp directory
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
string tempPath = Path.Combine(outDir, new Guid().ToString());
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);
@@ -609,7 +609,7 @@ namespace SabreTools.Library.FileTypes
keys.Sort(ZipFile.TorrentZipStringCompare);
// Create the temp directory
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
string tempPath = Path.Combine(outDir, new Guid().ToString());
if (!Directory.Exists(tempPath))
{
Directory.CreateDirectory(tempPath);