diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-17 21:48:22 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-17 21:48:22 -0500 |
| commit | 124754a04f1a85fc949e229e45bfd67e5ac6ff62 (patch) | |
| tree | c5bad076801d85ae7eef9de7041efe407dacbd92 /MediaBrowser.Controller/Providers/DirectoryService.cs | |
| parent | 049ef9b4ecd2c884e0ddb062b606770ef7f2dfa9 (diff) | |
use new naming project
Diffstat (limited to 'MediaBrowser.Controller/Providers/DirectoryService.cs')
| -rw-r--r-- | MediaBrowser.Controller/Providers/DirectoryService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs index 4fdc08da0..74a9c6606 100644 --- a/MediaBrowser.Controller/Providers/DirectoryService.cs +++ b/MediaBrowser.Controller/Providers/DirectoryService.cs @@ -11,6 +11,7 @@ namespace MediaBrowser.Controller.Providers { IEnumerable<FileSystemInfo> GetFileSystemEntries(string path); IEnumerable<FileSystemInfo> GetFiles(string path); + IEnumerable<FileSystemInfo> GetDirectories(string path); IEnumerable<FileSystemInfo> GetFiles(string path, bool clearCache); FileSystemInfo GetFile(string path); Dictionary<string, FileSystemInfo> GetFileSystemDictionary(string path); @@ -109,5 +110,10 @@ namespace MediaBrowser.Controller.Providers return entry; } + + public IEnumerable<FileSystemInfo> GetDirectories(string path) + { + return GetFileSystemEntries(path, false).Where(i => (i.Attributes & FileAttributes.Directory) == FileAttributes.Directory); + } } } |
