IDirectoryService.cs 639 B

123456789101112131415161718192021222324
  1. #pragma warning disable CA1002, CA1819, CS1591
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.IO;
  4. namespace MediaBrowser.Controller.Providers
  5. {
  6. public interface IDirectoryService
  7. {
  8. FileSystemMetadata[] GetFileSystemEntries(string path);
  9. List<FileSystemMetadata> GetDirectories(string path);
  10. List<FileSystemMetadata> GetFiles(string path);
  11. FileSystemMetadata? GetFile(string path);
  12. IReadOnlyList<string> GetFilePaths(string path);
  13. IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
  14. bool IsAccessible(string path);
  15. }
  16. }