Need to be more intelligent finding paths we're already watching

This commit is contained in:
ebr11 Eric Reed spam
2012-09-18 07:22:49 -04:00
parent 8b548fff38
commit e5b5861abf
2 changed files with 12 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ namespace MediaBrowser.Controller.IO
{
foreach (string path in folder.PhysicalLocations)
{
if (Path.IsPathRooted(path) && !pathsToWatch.ContainsStartsWith(path))
if (Path.IsPathRooted(path) && !pathsToWatch.ContainsParentFolder(path))
{
pathsToWatch.Add(path);
}