Represents a file entry in the Packwiz index.

Constructors

  • Creates a new IndexFileEntry instance.

    Parameters

    • file: Resource

      The Resource instance representing the file.

    • hash: string

      The hash of the file.

    • hashFormat: HashFormat

      The format of the hash.

    • Optionalalias: string

      An optional alias for the file that will be downloaded by this file.

    • metafile: boolean = false

      Whether the file is a metafile.

    • preserve: boolean = false

      Whether to preserve the file downloaded by this file if it is modified by an end user.

    Returns IndexFileEntry

Properties

alias?: string

An optional alias for the file that will be downloaded by this file.

file: Resource

The Resource instance representing the file.

hash: string

The hash of the file.

hashFormat: HashFormat

The format of the hash.

metafile: boolean = false

Whether the file is a metafile.

preserve: boolean = false

Whether to preserve the file downloaded by this file if it is modified by an end user.

Methods

MMNEPVFCICPMFPCPTTAAATR