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