Sfoglia il codice sorgente

Broaden folder rename fix

Brian Fiete 3 anni fa
parent
commit
e071bd0014
1 ha cambiato i file con 5 aggiunte e 8 eliminazioni
  1. 5 8
      IDE/src/FileWatcher.bf

+ 5 - 8
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;