using System.IO; namespace Azaion.Common.Services; public interface IFileSystem { Task ReadAllBytesAsync(string path, CancellationToken ct = default); Task WriteAllBytesAsync(string path, byte[] content, CancellationToken ct = default); bool FileExists(string path); void DeleteFile(string path); IEnumerable GetFiles(string directory, string searchPattern); IEnumerable GetFileInfos(string directory, string[] searchPatterns); DirectoryInfo GetDirectoryInfo(string path); bool DirectoryExists(string path); void CreateDirectory(string path); }