diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-09-18 13:50:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-09-18 13:50:24 -0400 |
| commit | aff7309a08b01d7eae24d140f55d36898b49d3df (patch) | |
| tree | 37bf5963b1e05b45edf9e513d096b747c17c8c9a /MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs | |
| parent | 5340bfe8da879ba2503cb675e6724ce33b754ae3 (diff) | |
update ffmpeg with qsv-compatible version
Diffstat (limited to 'MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs index 2dd2575ad..b899e88c2 100644 --- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs +++ b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs @@ -499,5 +499,23 @@ namespace MediaBrowser.Common.Implementations.IO { return File.ReadAllText(path, encoding); } + + public IEnumerable<string> GetDirectoryPaths(string path, bool recursive = false) + { + var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly; + return Directory.EnumerateDirectories(path, "*", searchOption); + } + + public IEnumerable<string> GetFilePaths(string path, bool recursive = false) + { + var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly; + return Directory.EnumerateFiles(path, "*", searchOption); + } + + public IEnumerable<string> GetFileSystemEntryPaths(string path, bool recursive = false) + { + var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly; + return Directory.EnumerateFileSystemEntries(path, "*", searchOption); + } } } |
