1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed folder renaming issue with case-only change

This commit is contained in:
Brian Fiete 2022-07-28 09:04:00 -04:00
parent c97d92d8b3
commit 1ce00ccf11

View file

@ -95,6 +95,19 @@ namespace IDE
FileChanged(starPath, null, .Changed);
}
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);
FileChanged(dirName, newPath, .DirectoryCreated);
}
}
var newPath;
if (isDirectory)
{