modal
    Preparing search index...

    Class SandboxFile

    SandboxFile represents an open file in the sandbox filesystem. Provides read/write operations similar to Node.js fsPromises.FileHandle.

    Index

    Methods

    • Read data from the file.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Promise that resolves to the read data as Uint8Array

    • Write data to the file.

      Parameters

      • data: Uint8Array

        Data to write (string or Uint8Array)

      Returns Promise<void>