mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
Fixed: Not properly getting the parent of a folder with a trailing slash
GetParentFolder will trim trailing slashes
This commit is contained in:
@@ -355,7 +355,7 @@ namespace NzbDrone.Common.Disk
|
||||
{
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
|
||||
var parent = Directory.GetParent(path);
|
||||
var parent = Directory.GetParent(path.TrimEnd(Path.DirectorySeparatorChar));
|
||||
|
||||
if (parent == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user