mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SevenZipArchive, XZArchive, Utilities] Cleanup including temp path
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user