mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +02:00
Broaden folder rename fix
This commit is contained in:
parent
1ce00ccf11
commit
e071bd0014
1 changed files with 5 additions and 8 deletions
|
@ -97,15 +97,12 @@ namespace IDE
|
||||||
|
|
||||||
if ((isDirectory) && (changeType == .Renamed))
|
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();
|
||||||
// On Windows, renaming a directory with only case changes will result in a remove before a rename
|
Path.GetDirectoryPath(newPath.Substring(0, newPath.Length - 1), dirName);
|
||||||
var dirName = scope String();
|
dirName.Append(Path.DirectorySeparatorChar);
|
||||||
Path.GetDirectoryPath(newPath.Substring(0, newPath.Length - 1), dirName);
|
|
||||||
dirName.Append(Path.DirectorySeparatorChar);
|
|
||||||
|
|
||||||
FileChanged(dirName, newPath, .DirectoryCreated);
|
FileChanged(dirName, newPath, .DirectoryCreated);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var newPath;
|
var newPath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue