aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryHelpers.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-24 13:48:48 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-24 13:48:48 -0400
commit7a5ba39603c2a0c970c619016686431b7ff14df1 (patch)
treed80da83a6f8b0bfd5d59cb204a933ab90c36f219 /MediaBrowser.Api/Library/LibraryHelpers.cs
parent398b658dbe72c6efa932b9d097916ea586b8eb9f (diff)
fixes #305 - Multiple collections
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryHelpers.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryHelpers.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.cs
index ff0915d78..d3b7861a6 100644
--- a/MediaBrowser.Api/Library/LibraryHelpers.cs
+++ b/MediaBrowser.Api/Library/LibraryHelpers.cs
@@ -203,7 +203,6 @@ namespace MediaBrowser.Api.Library
{
// Example: D:\Movies is the existing path
// D:\ cannot be added
- // Neither can D:\Movies\Kids
// A D:\Movies duplicate is ok here since that will be caught later
if (newPath.Equals(existingPath, StringComparison.OrdinalIgnoreCase))
@@ -211,12 +210,6 @@ namespace MediaBrowser.Api.Library
return true;
}
- // Validate the D:\Movies\Kids scenario
- if (newPath.StartsWith(existingPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase))
- {
- return false;
- }
-
// Validate the D:\ scenario
if (existingPath.StartsWith(newPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase))
{