2021-07-26 20:08:27 +00:00
|
|
|
#pragma warning disable CA1002, CA1819, CS1591
|
2020-08-22 19:56:24 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using MediaBrowser.Model.IO;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface IDirectoryService
|
|
|
|
{
|
|
|
|
FileSystemMetadata[] GetFileSystemEntries(string path);
|
2020-03-09 14:05:03 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
List<FileSystemMetadata> GetFiles(string path);
|
2020-03-09 14:05:03 +00:00
|
|
|
|
2021-05-06 22:52:06 +00:00
|
|
|
FileSystemMetadata? GetFile(string path);
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2020-02-23 09:53:51 +00:00
|
|
|
IReadOnlyList<string> GetFilePaths(string path);
|
2020-03-09 14:05:03 +00:00
|
|
|
|
2021-05-23 22:30:41 +00:00
|
|
|
IReadOnlyList<string> GetFilePaths(string path, bool clearCache, bool sort = false);
|
2024-03-18 15:09:00 +00:00
|
|
|
|
|
|
|
bool IsAccessible(string path);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
2019-01-13 19:30:58 +00:00
|
|
|
}
|