aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Providers/DirectoryService.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2024-03-18 16:09:00 +0100
committerGitHub <noreply@github.com>2024-03-18 09:09:00 -0600
commit239727e8967c87610e4807b2b8051a3d33aac131 (patch)
tree6f75c269148faa0b05bd57c21a542a40bcc5b9a5 /MediaBrowser.Controller/Providers/DirectoryService.cs
parent7c141b97094b5546e7b91e0eceb510d7bd1145f4 (diff)
fix: skip library folders that are inaccessible or empty (#9291)
Diffstat (limited to 'MediaBrowser.Controller/Providers/DirectoryService.cs')
-rw-r--r--MediaBrowser.Controller/Providers/DirectoryService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs
index d4de97651..7fe2f64af 100644
--- a/MediaBrowser.Controller/Providers/DirectoryService.cs
+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs
@@ -78,5 +78,10 @@ namespace MediaBrowser.Controller.Providers
return filePaths;
}
+
+ public bool IsAccessible(string path)
+ {
+ return _fileSystem.GetFileSystemEntryPaths(path).Any();
+ }
}
}