fixed broken test

pull/2/head
kay.one 11 years ago
parent 25e6473537
commit 3e65c393fd

@ -58,7 +58,15 @@ namespace NzbDrone.Common
//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…
Cancel
Save