mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir, SimpleSort] Only delete tempdir if it's not the default
This commit is contained in:
@@ -179,10 +179,13 @@ namespace SabreTools
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now that we're done, delete the temp folder
|
// Now that we're done, delete the temp folder (if it's not the default)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Directory.Delete(_tempDir, true);
|
if (_tempDir != Path.GetTempPath())
|
||||||
|
{
|
||||||
|
Directory.Delete(_tempDir, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -232,7 +232,10 @@ namespace SabreTools.Helper
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Directory.Delete(_tempDir, true);
|
if (_tempDir != Path.GetTempPath())
|
||||||
|
{
|
||||||
|
Directory.Delete(_tempDir, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user