rmapi-js
    Preparing search index...

    Class EntryFile

    one of the files the account lists for an item

    Index
    hash: string

    its hash

    name: string

    its name in the item's index, such as <id>.content or <id>/<page>.rm

    size: bigint

    its size in bytes

    • get bodyKind(): BodyKind | undefined

      the kind of body it is, or undefined for a file that is not a document's body

      Returns BodyKind | undefined

    • the file as the account has it, without this device's unsent edits

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • whether the platform's store holds the file

      Returns Promise<boolean>

    • fetch the file into the platform's store, unless it holds it, so it reads offline

      A pdf or epub reports its progress as it arrives; any other file, and one the store holds, reports once at its whole size.

      Parameters

      Returns Promise<void>