mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir] Move file delete outside so it tries to catch everything
This commit is contained in:
@@ -291,18 +291,18 @@ namespace SabreTools
|
||||
{
|
||||
ProcessFile(newItem, newBasePath, "");
|
||||
}
|
||||
}
|
||||
|
||||
// Cue to delete the file if it's a copy
|
||||
if (_copyFiles)
|
||||
{
|
||||
FileTools.DeleteFile(newItem);
|
||||
}
|
||||
// Cue to delete the file if it's a copy
|
||||
if (_copyFiles && item != newItem)
|
||||
{
|
||||
FileTools.DeleteFile(newItem);
|
||||
}
|
||||
|
||||
// Delete the sub temp directory
|
||||
if (Directory.Exists(tempSubDir))
|
||||
{
|
||||
Directory.Delete(tempSubDir, true);
|
||||
}
|
||||
// Delete the sub temp directory
|
||||
if (Directory.Exists(tempSubDir))
|
||||
{
|
||||
Directory.Delete(tempSubDir, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user