diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-29 02:26:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-03-29 02:26:48 -0400 |
| commit | 04b6f23473c4091ce7caf9fbe79d424ac002c0e0 (patch) | |
| tree | 8f7f729e1e0618c106b70301891faa4e7f6eb05d /MediaBrowser.Controller/Providers | |
| parent | 2dbe162e45269df00fb44fbe5340b72758399307 (diff) | |
3.2.9.1
Diffstat (limited to 'MediaBrowser.Controller/Providers')
| -rw-r--r-- | MediaBrowser.Controller/Providers/DirectoryService.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Providers/IDirectoryService.cs | 5 |
2 files changed, 13 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs index 01218c293a..40093df3af 100644 --- a/MediaBrowser.Controller/Providers/DirectoryService.cs +++ b/MediaBrowser.Controller/Providers/DirectoryService.cs @@ -103,6 +103,16 @@ namespace MediaBrowser.Controller.Providers return GetFileSystemEntries(path, clearCache).Where(i => !i.IsDirectory); } + public IEnumerable<string> GetFilePaths(string path) + { + return _fileSystem.GetFilePaths(path); + } + + public IEnumerable<string> GetFilePaths(string path, bool clearCache) + { + return _fileSystem.GetFilePaths(path); + } + public FileSystemMetadata GetFile(string path) { FileSystemMetadata file; diff --git a/MediaBrowser.Controller/Providers/IDirectoryService.cs b/MediaBrowser.Controller/Providers/IDirectoryService.cs index 54ae7e12be..f78d9cd6a6 100644 --- a/MediaBrowser.Controller/Providers/IDirectoryService.cs +++ b/MediaBrowser.Controller/Providers/IDirectoryService.cs @@ -8,9 +8,10 @@ namespace MediaBrowser.Controller.Providers public interface IDirectoryService { IEnumerable<FileSystemMetadata> GetFileSystemEntries(string path); - IEnumerable<FileSystemMetadata> GetFiles(string path); IEnumerable<FileSystemMetadata> GetDirectories(string path); - IEnumerable<FileSystemMetadata> GetFiles(string path, bool clearCache); + IEnumerable<FileSystemMetadata> GetFiles(string path); + IEnumerable<string> GetFilePaths(string path); + IEnumerable<string> GetFilePaths(string path, bool clearCache); FileSystemMetadata GetFile(string path); Dictionary<string, FileSystemMetadata> GetFileSystemDictionary(string path); } |
