Fix HealthCheck Warning for Artist Folders with 'ro'

This commit is contained in:
Qstick
2017-10-07 23:26:45 -04:00
parent 889b963429
commit 4c916f9186
5 changed files with 14 additions and 14 deletions
@@ -80,11 +80,11 @@ namespace NzbDrone.Common.Extensions
public static bool IsParentPath(this string parentPath, string childPath)
{
if (parentPath != "/")
if (parentPath != "/" && !parentPath.EndsWith(":\\"))
{
parentPath = parentPath.TrimEnd(Path.DirectorySeparatorChar);
}
if (childPath != "/")
if (childPath != "/" && !parentPath.EndsWith(":\\"))
{
childPath = childPath.TrimEnd(Path.DirectorySeparatorChar);
}