Huggingface.js documentation

Interface: ListFileEntry

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: ListFileEntry

Properties

lastCommit

• Optional lastCommit: Object

Only fetched if expand is set to true in the listFiles call.

Not available for bucket repos, use uploadedAt instead.

Type declaration

NameType
datestring
idstring
titlestring

Defined in

packages/hub/src/lib/list-files.ts:33


lfs

• Optional lfs: Object

Type declaration

NameTypeDescription
oidstring-
pointerSizenumberSize of the raw pointer file, 100~200 bytes
sizenumber-

Defined in

packages/hub/src/lib/list-files.ts:18


oid

• Optional oid: string

Not available for bucket repos.

Defined in

packages/hub/src/lib/list-files.ts:17


path

• path: string

Defined in

packages/hub/src/lib/list-files.ts:13


securityFileStatus

• Optional securityFileStatus: unknown

Only fetched if expand is set to true in the listFiles call.

Defined in

packages/hub/src/lib/list-files.ts:47


size

• size: number

Defined in

packages/hub/src/lib/list-files.ts:12


type

• type: "unknown" | "file" | "directory"

Defined in

packages/hub/src/lib/list-files.ts:11


uploadedAt

• Optional uploadedAt: string

Only fetched if expand is set to true in the listFiles call.

Only available for bucket repos.

Defined in

packages/hub/src/lib/list-files.ts:43


xetHash

• Optional xetHash: string

Xet-backed hash, a new protocol replacing LFS for big files.

Defined in

packages/hub/src/lib/list-files.ts:27

Update on GitHub