OpenFairyGUI API
    Preparing search index...

    Interface FileSystem

    Platform-neutral project filesystem contract shared by project and binary I/O.

    Host-specific adapters live in node-io.ts and web-io.ts.

    interface FileSystem {
        dirname(path: string): string;
        exists(path: string): Promise<boolean>;
        join(...paths: string[]): string;
        mkdir(path: string): Promise<void>;
        readdir(path: string): Promise<string[]>;
        readFile(path: string): Promise<string>;
        readFileRaw(path: string): Promise<Uint8Array<ArrayBufferLike>>;
        unlink?(path: string): Promise<void>;
        writeFile(path: string, content: string): Promise<void>;
        writeFileRaw(path: string, data: Uint8Array): Promise<void>;
    }
    Index
    • Removes a file when the adapter supports project-source cleanup.

      Parameters

      • path: string

      Returns Promise<void>