Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,17 @@ private static string GetCorrectCasedPath(string path)
}
else
{
exactPath = Directory.GetFileSystemEntries(exactPath, item).First();
// Use GetFileSystemEntries to get the correct casing of this element
var entries = Directory.GetFileSystemEntries(exactPath, item);
if (entries.Length > 0)
{
exactPath = entries.First();
}
else
{
// If previous call didn't return anything, something failed so we just return the path we were given
return path;
}
}
}

Expand Down