XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESystem

【Rust】XFE系统,基于Rust和汇编

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFESystem.Core;

public readonly record struct WorkspaceEntry(string Path, bool IsDirectory, long Length)
{
    public string Name => SystemPaths.Name(Path);
}

/// <summary>Every operation addresses the guest namespace. Implementations must never implicitly fall back to host files.</summary>
public interface IWorkspaceStorage
{
    bool IsPersistent { get; }
    bool Exists(string path);
    void CreateDirectory(string path);
    WorkspaceEntry[] List(string directory);
    string ReadText(string path);
    void WriteText(string path, string content);
    void Delete(string path);
    void Move(string source, string destination);
}