diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-30 01:02:17 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-30 01:02:17 +0100 |
| commit | f8aff0c51d04420967da0e4adf1834515b1059f8 (patch) | |
| tree | 2f53a606f4e6d558544db9f785140b49db3797c8 /MediaBrowser.Api/Library/LibraryStructureService.cs | |
| parent | c8cb9080043e035834bb9a01d78c21d0f770e35f (diff) | |
Fix conditions where the ! was swallowed in #726
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryStructureService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |
