# Interface: CommitFile

## Properties

### content

• **content**: [`ContentSource`](../modules#contentsource)

#### Defined in[[content.defined-in]]

[packages/hub/src/lib/commit.ts:50](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/commit.ts#L50)

___

### 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[[mode.defined-in]]

[packages/hub/src/lib/commit.ts:57](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/commit.ts#L57)

___

### operation

• **operation**: ``"addOrUpdate"``

#### Defined in[[operation.defined-in]]

[packages/hub/src/lib/commit.ts:48](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/commit.ts#L48)

___

### path

• **path**: `string`

#### Defined in[[path.defined-in]]

[packages/hub/src/lib/commit.ts:49](https://github.com/huggingface/huggingface.js/blob/main/packages/hub/src/lib/commit.ts#L49)

