15 lines
452 B
C#
15 lines
452 B
C#
namespace SzCore;
|
|
|
|
public interface ISzFileManager
|
|
{
|
|
string DataPath { get; }
|
|
string DatasetsPath { get; }
|
|
string TemplatesPath { get; }
|
|
|
|
bool SaveFile(string path, string fileContent);
|
|
string? LoadFile(string path);
|
|
bool DeleteFile(string path);
|
|
|
|
Task<bool> SaveFileAsync(string path, string fileContent, CancellationToken ct = default);
|
|
Task<string?> LoadFileAsync(string path, CancellationToken ct = default);
|
|
} |