← Back to Files
IFileService.cs
using KaiChat.Models;
namespace KaiChat.Services;
public interface IFileService
{
List<FileItem> GetDirectoryContents(string relativePath = "");
string ReadFile(string relativePath);
Task WriteFileAsync(string relativePath, string content);
Task DeleteFileAsync(string relativePath);
Task RenameFileAsync(string sourcePath, string destPath);
string? GetRelativePath(string fullPath);
string Combine(string relativePath, string name);
}