diff --git a/src/NzbDrone.Common/Extensions/PathExtensions.cs b/src/NzbDrone.Common/Extensions/PathExtensions.cs index 0d8373a98..2424323fc 100644 --- a/src/NzbDrone.Common/Extensions/PathExtensions.cs +++ b/src/NzbDrone.Common/Extensions/PathExtensions.cs @@ -148,14 +148,14 @@ public static bool IsPathValid(this string path, PathValidationType validationTy 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)