* remove readalltext * remove unused method * remove fileexists * remove folderexists * remove readalllines * remove fake local file system * show playlist name in playout build errors * add basic sequential schedule validator tests * work around sequential schedule validation limit
16 lines
656 B
C#
16 lines
656 B
C#
namespace ErsatzTV.Core.Interfaces.Metadata;
|
|
|
|
public interface ILocalFileSystem
|
|
{
|
|
Unit EnsureFolderExists(string folder);
|
|
DateTime GetLastWriteTime(string path);
|
|
IEnumerable<string> ListSubdirectories(string folder);
|
|
IEnumerable<string> ListFiles(string folder);
|
|
IEnumerable<string> ListFiles(string folder, string searchPattern);
|
|
IEnumerable<string> ListFiles(string folder, params string[] searchPatterns);
|
|
Task<Either<BaseError, Unit>> CopyFile(string source, string destination);
|
|
Unit EmptyFolder(string folder);
|
|
Task<byte[]> GetHash(string path);
|
|
string GetCustomOrDefaultFile(string folder, string file);
|
|
}
|