Fix conditions where the ! was swallowed in #726

This commit is contained in:
Erwin de Haan
2019-01-30 01:02:17 +01:00
parent c8cb908004
commit f8aff0c51d
2 changed files with 3 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ namespace MediaBrowser.Api.Library
var currentPath = Path.Combine(rootFolderPath, request.Name);
var newPath = Path.Combine(rootFolderPath, request.NewName);
if (Directory.Exists(currentPath))
if (!Directory.Exists(currentPath))
{
throw new FileNotFoundException("The media collection does not exist");
}