Function Readonly

  • Implements the non-readonly methods to throw EROFS

    Type Parameters

    Parameters

    • FS: T

    Returns Mixin<T, {
        createFile(path: string, flag: string, mode: number): Promise<File<FileSystem>>;
        createFileSync(path: string, flag: string, mode: number): File<FileSystem>;
        link(srcpath: string, dstpath: string): Promise<void>;
        linkSync(srcpath: string, dstpath: string): void;
        metadata(): FileSystemMetadata;
        mkdir(path: string, mode: number): Promise<void>;
        mkdirSync(path: string, mode: number): void;
        rename(oldPath: string, newPath: string): Promise<void>;
        renameSync(oldPath: string, newPath: string): void;
        rmdir(path: string): Promise<void>;
        rmdirSync(path: string): void;
        sync(path: string, data: Uint8Array, stats: Readonly<Stats>): Promise<void>;
        syncSync(path: string, data: Uint8Array, stats: Readonly<Stats>): void;
        unlink(path: string): Promise<void>;
        unlinkSync(path: string): void;
    }>