fix: skip library folders that are inaccessible or empty (#9291)

This commit is contained in:
Claus Vium
2024-03-18 16:09:00 +01:00
committed by GitHub
parent 7c141b9709
commit 239727e896
4 changed files with 44 additions and 3 deletions

View File

@@ -78,5 +78,10 @@ namespace MediaBrowser.Controller.Providers
return filePaths;
}
public bool IsAccessible(string path)
{
return _fileSystem.GetFileSystemEntryPaths(path).Any();
}
}
}

View File

@@ -16,5 +16,7 @@ namespace MediaBrowser.Controller.Providers
IReadOnlyList<string> GetFilePaths(string path);
IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
bool IsAccessible(string path);
}
}