mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
Need to be more intelligent finding paths we're already watching
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user