mirror of
https://github.com/Readarr/Readarr
synced 2025-12-15 21:02:40 +01:00
Fixed IsValidPath usages
(cherry picked from commit 033936dce7e13c8ab2e38407782dc9cdd949460e) Closes #2313
This commit is contained in:
parent
b3cf903a3b
commit
7c03ca5cdf
2 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ public void Setup()
|
|||
.Setup(x => x.FolderExists(It.IsAny<string>()))
|
||||
.Returns((string path) =>
|
||||
{
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ public void Setup()
|
|||
.Setup(x => x.FileExists(It.IsAny<string>()))
|
||||
.Returns((string path) =>
|
||||
{
|
||||
Ensure.That(path, () => path).IsValidPath();
|
||||
Ensure.That(path, () => path).IsValidPath(PathValidationType.CurrentOs);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ public HealthCheck Check(IEvent message)
|
|||
return new HealthCheck(GetType(), HealthCheckResult.Error, _localizationService.GetLocalizedString("RemotePathMappingCheckImportFailed"), "#remote-path-import-failed");
|
||||
}
|
||||
|
||||
if (!dlpath.IsPathValid())
|
||||
if (!dlpath.IsPathValid(PathValidationType.CurrentOs))
|
||||
{
|
||||
if (!status.IsLocalhost)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue