1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Fixed: Changing movies to another root folder without moving files

This commit is contained in:
Bogdan
2024-10-25 09:42:55 +03:00
parent 79cd6269f4
commit 63c6f70e67
2 changed files with 21 additions and 1 deletions
@@ -86,7 +86,7 @@ namespace NzbDrone.Common.Extensions
throw new NotParentException("{0} is not a child of {1}", childPath, parentPath);
}
return childPath.Substring(parentPath.Length).Trim(Path.DirectorySeparatorChar);
return childPath.Substring(parentPath.Length).Trim('\\', '/');
}
public static string GetParentPath(this string childPath)