From f8aff0c51d04420967da0e4adf1834515b1059f8 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Wed, 30 Jan 2019 01:02:17 +0100 Subject: Fix conditions where the ! was swallowed in #726 --- MediaBrowser.Api/Library/LibraryStructureService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs') diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index c95a06805..d6bcf7878 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -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"); } -- cgit v1.2.3