tar
    Preparing search index...

    Class ReadEntrySync

    An archive entry with its body, for sync code. The body can be consumed one time, in one way. It must be consumed before the next entry is read: after that, the rest of it is gone.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    absolute?: string

    The absolute path of the entry, when a consumer resolves it.

    atime?: Date
    ctime?: Date
    dev?: number
    devmaj: number
    devmin: number
    extended?: Pax

    The PAX header that applies to this entry only.

    gid?: number
    globalExtended?: Pax

    The global PAX header in effect.

    gname?: string
    header: Header

    The header block of the entry.

    ignore: boolean

    The body is skipped. Set for a type that is not an object of the file system, and for an entry that the filter refuses.

    ino?: number
    invalid: boolean = false

    A consumer sets this when it refuses the entry.

    linkpath?: string
    mode?: number

    The permission bits only.

    mtime?: Date
    nlink?: number
    path: string
    size: number

    The number of bytes in the body.

    uid?: number
    uname?: string
    unsupported: boolean = false

    A consumer sets this when it does not support the type.

    Accessors

    • get body(): IterableIterator<Uint8Array<ArrayBufferLike>>

      The parts of the body. Each one is a view into the input, not a copy. Input is read only when the iterator is read.

      Returns IterableIterator<Uint8Array<ArrayBufferLike>>

    • get bodyUsed(): boolean

      True when the body started to be consumed.

      Returns boolean

    Methods

    • The body in a new ArrayBuffer.

      Returns ArrayBuffer

    • The body in a new Uint8Array.

      Returns Uint8Array<ArrayBuffer>

    • The body, decoded as UTF-8. A byte order mark at the start is not in the text.

      Returns string