IDirectoryService.cs 757 B

123456789101112131415161718192021222324252627
  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> GetFiles(string path);
  10. FileSystemMetadata? GetFile(string path);
  11. IReadOnlyList<string> GetFilePaths(string path);
  12. IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
  13. /// <summary>
  14. /// Does the path exist.
  15. /// </summary>
  16. /// <param name="path">The path.</param>
  17. /// <returns>Whether the path exists.</returns>
  18. bool PathExists(string path);
  19. }
  20. }