mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 09:33:52 -07:00
fixed broken test
This commit is contained in:
parent
25e6473537
commit
3e65c393fd
1 changed files with 9 additions and 1 deletions
|
@ -58,7 +58,15 @@ namespace NzbDrone.Common
|
||||||
//Drive letter
|
//Drive letter
|
||||||
return dirInfo.Name.ToUpper();
|
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)
|
public static string GetActualCasing(this string path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue