aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryHelpers.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-05-17 11:53:13 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-05-17 11:53:13 -0400
commit584641a6f43fee18f65dc9c8abd24b88742922ce (patch)
treec25da5ee2b3819281cf20a0f847a0c89fef10adb /MediaBrowser.Api/Library/LibraryHelpers.cs
parent1b333d124487a49f221c4f09f259a1d1891c6b44 (diff)
parentda7af24fca3b2462b971dce595cfa5e548311cce (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryHelpers.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryHelpers.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.cs
index e956e214d..12b9d478f 100644
--- a/MediaBrowser.Api/Library/LibraryHelpers.cs
+++ b/MediaBrowser.Api/Library/LibraryHelpers.cs
@@ -75,7 +75,7 @@ namespace MediaBrowser.Api.Library
throw new DirectoryNotFoundException("The media collection does not exist");
}
- if (Directory.Exists(newPath))
+ if (!string.Equals(currentPath, newPath, StringComparison.OrdinalIgnoreCase) && Directory.Exists(newPath))
{
throw new ArgumentException("There is already a media collection with the name " + newPath + ".");
}