mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFrmDir] Make the temp dir more predicatble
This commit is contained in:
@@ -292,7 +292,7 @@ namespace SabreTools
|
||||
// Define the temporary directory
|
||||
string tempdir = (String.IsNullOrEmpty(_tempDir) ? Environment.CurrentDirectory : _tempDir);
|
||||
tempdir += (tempdir.EndsWith(Path.DirectorySeparatorChar.ToString()) ? "" : Path.DirectorySeparatorChar.ToString());
|
||||
tempdir += "temp" + DateTime.Now.ToString("yyyyMMddHHmmss") + Path.DirectorySeparatorChar;
|
||||
tempdir += "__temp__" + Path.DirectorySeparatorChar;
|
||||
|
||||
// Special case for if we are in Romba mode (all names are supposed to be SHA-1 hashes)
|
||||
if (_datdata.Romba)
|
||||
@@ -340,7 +340,7 @@ namespace SabreTools
|
||||
// Clear the temp directory
|
||||
if (Directory.Exists(tempdir))
|
||||
{
|
||||
Directory.Delete(tempdir, true);
|
||||
Output.CleanDirectory(tempdir);
|
||||
}
|
||||
}
|
||||
// Otherwise, just get the info on the file itself
|
||||
|
||||
Reference in New Issue
Block a user