[DATFromDir] One more try

This commit is contained in:
Matt Nadareski
2016-09-22 11:28:44 -07:00
parent b7ac716d64
commit 8fda194f6f

View File

@@ -248,7 +248,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)
{ {
FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); FileTools.DeleteFile(newItem);
} }
foreach (Rom rom in extracted) foreach (Rom rom in extracted)
@@ -267,7 +267,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)
{ {
FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); FileTools.DeleteFile(newItem);
} }
} }
} }
@@ -288,7 +288,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)
{ {
FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); FileTools.DeleteFile(newItem);
} }
_logger.Log(Path.GetFileName(item) + " treated like an archive"); _logger.Log(Path.GetFileName(item) + " treated like an archive");
@@ -313,7 +313,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)
{ {
FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); FileTools.DeleteFile(newItem);
} }
} }
} }