mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
fixed broken test
This commit is contained in:
parent
25e6473537
commit
3e65c393fd
@ -58,7 +58,15 @@ private static string GetProperCapitalization(DirectoryInfo dirInfo)
|
||||
//Drive letter
|
||||
return dirInfo.Name.ToUpper();
|
||||
}
|
||||
return Path.Combine(GetProperCapitalization(parentDirInfo), parentDirInfo.GetDirectories(dirInfo.Name)[0].Name);
|
||||
|
||||
var folderName = dirInfo.Name;
|
||||
|
||||
if (dirInfo.Exists)
|
||||
{
|
||||
folderName = parentDirInfo.GetDirectories(dirInfo.Name)[0].Name;
|
||||
}
|
||||
|
||||
return Path.Combine(GetProperCapitalization(parentDirInfo), folderName);
|
||||
}
|
||||
|
||||
public static string GetActualCasing(this string path)
|
||||
|
Loading…
Reference in New Issue
Block a user