mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
656 B
15 lines
656 B
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); |
|
}
|
|
|