diff --git a/src/NzbDrone.Common/Extensions/PathExtensions.cs b/src/NzbDrone.Common/Extensions/PathExtensions.cs index 0862d6737..78f0aaf1a 100644 --- a/src/NzbDrone.Common/Extensions/PathExtensions.cs +++ b/src/NzbDrone.Common/Extensions/PathExtensions.cs @@ -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)