From e071bd0014d74d92ad4e2080a8d5ce2935ea4b4f Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 28 Jul 2022 09:05:23 -0400 Subject: [PATCH] Broaden folder rename fix --- IDE/src/FileWatcher.bf | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/IDE/src/FileWatcher.bf b/IDE/src/FileWatcher.bf index ba9a3286..39b2f34a 100644 --- a/IDE/src/FileWatcher.bf +++ b/IDE/src/FileWatcher.bf @@ -97,15 +97,12 @@ namespace IDE if ((isDirectory) && (changeType == .Renamed)) { - if (filePath.Equals(newPath, .OrdinalIgnoreCase)) - { - // On Windows, renaming a directory with only case changes will result in a remove before a rename - var dirName = scope String(); - Path.GetDirectoryPath(newPath.Substring(0, newPath.Length - 1), dirName); - dirName.Append(Path.DirectorySeparatorChar); + // On Windows, renaming a directory with only case changes will result in a remove before a rename + var dirName = scope String(); + Path.GetDirectoryPath(newPath.Substring(0, newPath.Length - 1), dirName); + dirName.Append(Path.DirectorySeparatorChar); - FileChanged(dirName, newPath, .DirectoryCreated); - } + FileChanged(dirName, newPath, .DirectoryCreated); } var newPath;