aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Providers
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-04-01 22:42:43 +0200
committerGitHub <noreply@github.com>2020-04-01 22:42:43 +0200
commitf31efce52db9dbd726cce55ea099c0c5165da566 (patch)
treeb07d4daa00a930e744008d0955e35a9102e85052 /MediaBrowser.Controller/Providers
parentddd5d3aaecd2837e37c6570af4e798b64a862348 (diff)
parent07ea120ba961c20717dba625edb462d09e5ebec3 (diff)
Merge branch 'master' into usings
Diffstat (limited to 'MediaBrowser.Controller/Providers')
-rw-r--r--MediaBrowser.Controller/Providers/DirectoryService.cs8
-rw-r--r--MediaBrowser.Controller/Providers/IDirectoryService.cs4
2 files changed, 5 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs
index ca470872b1..b7640c2050 100644
--- a/MediaBrowser.Controller/Providers/DirectoryService.cs
+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs
@@ -66,12 +66,10 @@ namespace MediaBrowser.Controller.Providers
return file;
}
- public List<string> GetFilePaths(string path)
- {
- return GetFilePaths(path, false);
- }
+ public IReadOnlyList<string> GetFilePaths(string path)
+ => GetFilePaths(path, false);
- public List<string> GetFilePaths(string path, bool clearCache)
+ public IReadOnlyList<string> GetFilePaths(string path, bool clearCache)
{
if (clearCache || !_filePathCache.TryGetValue(path, out List<string> result))
{
diff --git a/MediaBrowser.Controller/Providers/IDirectoryService.cs b/MediaBrowser.Controller/Providers/IDirectoryService.cs
index b304fc3356..949a17740b 100644
--- a/MediaBrowser.Controller/Providers/IDirectoryService.cs
+++ b/MediaBrowser.Controller/Providers/IDirectoryService.cs
@@ -11,8 +11,8 @@ namespace MediaBrowser.Controller.Providers
FileSystemMetadata GetFile(string path);
- List<string> GetFilePaths(string path);
+ IReadOnlyList<string> GetFilePaths(string path);
- List<string> GetFilePaths(string path, bool clearCache);
+ IReadOnlyList<string> GetFilePaths(string path, bool clearCache);
}
}