mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-25 22:37:27 -04:00
Fixed getting parent path from a path without another slash
Fixed: Manual Import failing for some paths
This commit is contained in:
@@ -71,10 +71,11 @@ namespace NzbDrone.Common.Extensions
|
||||
|
||||
var index = parentPath.LastIndexOfAny(new[] { '\\', '/' });
|
||||
|
||||
if (index != -1)
|
||||
if (index > 0)
|
||||
{
|
||||
return parentPath.Substring(0, index);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user