From 42896494f541bfd3ec316f581ca2b2f26d08fb18 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 22 Sep 2016 11:56:14 -0700 Subject: [PATCH] Revert "[DATFromDir] One more try" This reverts commit 8fda194f6f1acf217e04a9ad08be676563afbfe9. --- SabreTools.Helper/Objects/DATFromDir.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SabreTools.Helper/Objects/DATFromDir.cs b/SabreTools.Helper/Objects/DATFromDir.cs index 94a43e21..6a057566 100644 --- a/SabreTools.Helper/Objects/DATFromDir.cs +++ b/SabreTools.Helper/Objects/DATFromDir.cs @@ -248,7 +248,7 @@ namespace SabreTools // Cue to delete the file if it's a copy if (_copyFiles && item != newItem) { - FileTools.DeleteFile(newItem); + FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); } foreach (Rom rom in extracted) @@ -267,7 +267,7 @@ namespace SabreTools // Cue to delete the file if it's a copy if (_copyFiles && item != newItem) { - FileTools.DeleteFile(newItem); + FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); } } } @@ -288,7 +288,7 @@ namespace SabreTools // Cue to delete the file if it's a copy if (_copyFiles && item != newItem) { - FileTools.DeleteFile(newItem); + FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); } _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 if (_copyFiles && item != newItem) { - FileTools.DeleteFile(newItem); + FileTools.DeleteDirectory(Path.GetDirectoryName(newItem)); } } }