IDirectoryService.cs 757 B

12345678910111213141516171819202122232425262728
  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. FileSystemMetadata? GetDirectory(string path);
  13. FileSystemMetadata? GetFileSystemEntry(string path);
  14. IReadOnlyList<string> GetFilePaths(string path);
  15. IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
  16. bool IsAccessible(string path);
  17. }
  18. }