Library API
    Preparing search index...

    Function serverWrite

    • Writes text or binary data to a file in the server sandboxed storage. Automatically creates parent directories as needed.

      Parameters

      • filePath: string

        Relative path inside the sandboxed root

      • content: string | ArrayBufferView<ArrayBufferLike>

        Text string or Buffer/Uint8Array

      • OptionalrootDir: string

        Optional root directory override

      Returns Promise<void>