Interface ExtendedStatOptions

Options to pass to the stat command

interface ExtendedStatOptions {
    extended: true;
    filter?: Filter;
    offline?: boolean;
    onProgress?: ((evt) => void);
    path?: string;
    signal?: AbortSignal;
}

Hierarchy (view full)

Properties

extended: true

If true, traverse the whole DAG to return additional stats. If all data is not in the local blockstore, this may involve fetching them from the network.

filter?: Filter

By default CIDs are deduplicated using a ScalableCuckooFilter - if you wish to use a different filter, pass it here.

offline?: boolean

If true, do not perform any network operations and throw if blocks are missing from the local store.

Default

false
onProgress?: ((evt) => void)

Type declaration

    • (evt): void
    • Parameters

      Returns void

path?: string

An optional path to allow getting stats of paths inside directories

signal?: AbortSignal