From e5b5861abf1ebd940e9b369de3cd3ab0432338c5 Mon Sep 17 00:00:00 2001 From: ebr11 Eric Reed spam Date: Tue, 18 Sep 2012 07:22:49 -0400 Subject: Need to be more intelligent finding paths we're already watching --- MediaBrowser.Controller/IO/DirectoryWatchers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MediaBrowser.Controller/IO') diff --git a/MediaBrowser.Controller/IO/DirectoryWatchers.cs b/MediaBrowser.Controller/IO/DirectoryWatchers.cs index 91f74e6777..8243c8174a 100644 --- a/MediaBrowser.Controller/IO/DirectoryWatchers.cs +++ b/MediaBrowser.Controller/IO/DirectoryWatchers.cs @@ -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); } -- cgit v1.2.3