aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/EnvironmentService.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-30 01:02:17 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-30 01:02:17 +0100
commitf8aff0c51d04420967da0e4adf1834515b1059f8 (patch)
tree2f53a606f4e6d558544db9f785140b49db3797c8 /MediaBrowser.Api/EnvironmentService.cs
parentc8cb9080043e035834bb9a01d78c21d0f770e35f (diff)
Fix conditions where the ! was swallowed in #726
Diffstat (limited to 'MediaBrowser.Api/EnvironmentService.cs')
-rw-r--r--MediaBrowser.Api/EnvironmentService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/EnvironmentService.cs b/MediaBrowser.Api/EnvironmentService.cs
index 907c44fe1..bdd7a8f8f 100644
--- a/MediaBrowser.Api/EnvironmentService.cs
+++ b/MediaBrowser.Api/EnvironmentService.cs
@@ -144,7 +144,7 @@ namespace MediaBrowser.Api
}
else
{
- if (Directory.Exists(request.Path))
+ if (!Directory.Exists(request.Path))
{
throw new FileNotFoundException("File not found", request.Path);
}
@@ -153,7 +153,7 @@ namespace MediaBrowser.Api
else
{
- if (!File.Exists(request.Path) && Directory.Exists(request.Path))
+ if (!File.Exists(request.Path) && !Directory.Exists(request.Path))
{
throw new FileNotFoundException("Path not found", request.Path);
}