using LibGit.Interfaces; namespace LibGitTest; public class FileRepoSource : IRepoSource { public FileRepoSource(string basePath) { BasePath = basePath; if (!Directory.Exists(BasePath)) Console.WriteLine("Warning: Base path does not exist: " + BasePath); } public string BasePath { get; set; } public async Task FileExists(string path) { return File.Exists(Path.Join(BasePath, path)); } public async Task GetFileStream(string path) { return File.OpenRead(Path.Join(BasePath, path)); } }