[DATFromDir] Use pre-existing variable for reference

This commit is contained in:
Matt Nadareski
2016-09-22 16:21:15 -07:00
parent 8a9722f8b2
commit bd1a0219ac

View File

@@ -297,7 +297,7 @@ namespace SabreTools
// Cue to delete the file if it's a copy // Cue to delete the file if it's a copy
if (_copyFiles && item != newItem) if (_copyFiles && item != newItem)
{ {
Directory.Delete(Path.GetDirectoryName(Path.GetFullPath(newItem)), true); Directory.Delete(newBasePath, true);
} }
// Delete the sub temp directory // Delete the sub temp directory