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:
parent
c97d92d8b3
commit
1ce00ccf11
1 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue