Huggingface.js documentation

Interface: CommitFile

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: CommitFile

Properties

content

• content: ContentSource

Defined in

packages/hub/src/lib/commit.ts:50


mode

• Optional mode: number

POSIX file mode (st_mode), e.g. 0o755, optionally with file type bits 0o100000 (regular file) or 0o120000 (symlink, content is the link target).

Only supported for buckets, ignored otherwise. When omitted, the file has no mode on the Hub.

Defined in

packages/hub/src/lib/commit.ts:57


operation

• operation: "addOrUpdate"

Defined in

packages/hub/src/lib/commit.ts:48


path

• path: string

Defined in

packages/hub/src/lib/commit.ts:49

Update on GitHub