Fixed IsValidPath usages

(cherry picked from commit 033936dce7e13c8ab2e38407782dc9cdd949460e)

Closes #3470
This commit is contained in:
Mark McDowall 2023-03-26 22:47:09 -07:00 committed by Bogdan
parent d0f75e2e96
commit f26e0511d6
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
.Setup(x => x.FolderExists(It.IsAny<string>())) .Setup(x => x.FolderExists(It.IsAny<string>()))
.Returns((string path) => .Returns((string path) =>
{ {
Ensure.That(path, () => path).IsValidPath(); Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
return false; return false;
}); });
@ -91,7 +91,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
.Setup(x => x.FileExists(It.IsAny<string>())) .Setup(x => x.FileExists(It.IsAny<string>()))
.Returns((string path) => .Returns((string path) =>
{ {
Ensure.That(path, () => path).IsValidPath(); Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
return false; return false;
}); });
} }

View File

@ -150,7 +150,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
return new HealthCheck(GetType(), HealthCheckResult.Error, $"Lidarr failed to import a track. Check your logs for details."); return new HealthCheck(GetType(), HealthCheckResult.Error, $"Lidarr failed to import a track. Check your logs for details.");
} }
if (!dlpath.IsPathValid()) if (!dlpath.IsPathValid(PathValidationType.CurrentOs))
{ {
if (!status.IsLocalhost) if (!status.IsLocalhost)
{ {