SboxSuperuser/Core/Storage/IStoreFiles.cs

An interface named IStoreFiles in the SboxSuperuser storage layer. Declares directory checks, file listing, reading and async writing used by whatever store implementation sits behind it.

namespace SboxSuperuser.Core.Storage;

internal interface IStoreFiles
{
	bool DirectoryExists( string directory );
	bool FileExists( string path );
	void CreateDirectory( string directory );
	IReadOnlyList<string> ListFiles( string directory );
	string Read( string path );
	Task WriteNewAsync( string path, string content, CancellationToken cancellation );
}