Fixed: Ignore extra spaces in path when not running on Windows

Closes #7251
pull/7253/head
Mark McDowall 5 months ago committed by Mark McDowall
parent 4f0e1c54c1
commit 6d0f10b877

@ -147,14 +147,14 @@ namespace NzbDrone.Common.Extensions
return false;
}
if (path.Trim() != path)
{
return false;
}
// Only check for leading or trailing spaces for path when running on Windows.
if (OsInfo.IsWindows)
{
if (path.Trim() != path)
{
return false;
}
var directoryInfo = new DirectoryInfo(path);
while (directoryInfo != null)

Loading…
Cancel
Save