interface INodeFsLike {
    mkdir(path: string, options?: { recursive?: boolean }): Promise<void>;
    readFile(path: string): Promise<Uint8Array>;
    stat(path: string): Promise<{ lastModified: number; size: number }>;
    writeFile(path: string, data: Uint8Array): Promise<void>;
}

Methods

  • Parameters

    • path: string
    • Optionaloptions: { recursive?: boolean }

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<Uint8Array>

  • Parameters

    • path: string

    Returns Promise<{ lastModified: number; size: number }>

  • Parameters

    • path: string
    • data: Uint8Array

    Returns Promise<void>