[DatFile, FileTypes/, Utilities] GUID, but correct

This commit is contained in:
Matt Nadareski
2018-02-22 16:21:11 -08:00
parent 07f8dba600
commit b01ba56d6a
4 changed files with 35 additions and 8 deletions

View File

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