IDirectoryService.cs 694 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. using MediaBrowser.Common.IO;
  3. using MediaBrowser.Controller.IO;
  4. using MediaBrowser.Model.IO;
  5. namespace MediaBrowser.Controller.Providers
  6. {
  7. public interface IDirectoryService
  8. {
  9. IEnumerable<FileSystemMetadata> GetFileSystemEntries(string path);
  10. IEnumerable<FileSystemMetadata> GetDirectories(string path);
  11. IEnumerable<FileSystemMetadata> GetFiles(string path);
  12. IEnumerable<string> GetFilePaths(string path);
  13. IEnumerable<string> GetFilePaths(string path, bool clearCache);
  14. FileSystemMetadata GetFile(string path);
  15. Dictionary<string, FileSystemMetadata> GetFileSystemDictionary(string path);
  16. }
  17. }