mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 15:16:31 +00:00
big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.IO;
|
||||
|
||||
namespace Azaion.Common.Services;
|
||||
|
||||
public interface IFileSystem
|
||||
{
|
||||
Task<byte[]> ReadAllBytesAsync(string path, CancellationToken ct = default);
|
||||
Task WriteAllBytesAsync(string path, byte[] content, CancellationToken ct = default);
|
||||
bool FileExists(string path);
|
||||
void DeleteFile(string path);
|
||||
IEnumerable<string> GetFiles(string directory, string searchPattern);
|
||||
IEnumerable<FileInfo> GetFileInfos(string directory, string[] searchPatterns);
|
||||
DirectoryInfo GetDirectoryInfo(string path);
|
||||
bool DirectoryExists(string path);
|
||||
void CreateDirectory(string path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user