We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4804ad commit 3993d06Copy full SHA for 3993d06
TeamCoding.Shared/Documents/DocumentPaths.cs
@@ -39,6 +39,10 @@ public static string GetCorrectCase(string fileOrFolder)
39
}
40
private static string GetCorrectCaseInternal(string fileOrFolder)
41
{ // http://stackoverflow.com/a/29751774
42
+ if (string.IsNullOrEmpty(fileOrFolder))
43
+ {
44
+ return fileOrFolder;
45
+ }
46
string myParentFolder = Path.GetDirectoryName(fileOrFolder);
47
string myChildName = Path.GetFileName(fileOrFolder);
48
if (ReferenceEquals(myParentFolder, null))
0 commit comments