mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SimpleSort] Even better temp folders?!
This commit is contained in:
@@ -55,7 +55,7 @@ namespace SabreTools.Helper
|
||||
_datdata = datdata;
|
||||
_inputs = inputs;
|
||||
_outDir = (outDir == "" ? "Rebuild" : outDir);
|
||||
_tempDir = (String.IsNullOrEmpty(tempDir) ? Path.GetTempPath() : tempDir);
|
||||
_tempDir = (String.IsNullOrEmpty(tempDir) ? Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()) : tempDir);
|
||||
_quickScan = quickScan;
|
||||
_toFolder = toFolder;
|
||||
_verify = verify;
|
||||
@@ -224,8 +224,11 @@ namespace SabreTools.Helper
|
||||
for (int i = 0; i < files.Count; i++)
|
||||
{
|
||||
success &= RebuildToOutputHelper(files[i], i, files.Count);
|
||||
if (_tempDir != Path.GetTempPath())
|
||||
{
|
||||
FileTools.CleanDirectory(_tempDir);
|
||||
}
|
||||
}
|
||||
|
||||
// Now one final delete of the temp directory
|
||||
while (Directory.Exists(_tempDir))
|
||||
|
||||
Reference in New Issue
Block a user