PublishFileDiff
Unofficial
A file change the Publish changes dialog lists, as produced by its scan for changes.
Import:
import type { PublishFileDiff } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface PublishFileDiffProperties
| Property | Type | Description | |
|---|---|---|---|
| checked | boolean | Whether the change is selected for publishing. | |
| ctime | number | The creation time on the site, in milliseconds since the epoch; 0 for a new file. | |
| mtime | number | The modification time on the site, in milliseconds since the epoch; 0 for a new file. | |
| path | string | The vault path. | |
| size | number | The size on the site in bytes; 0 for a new file. | |
| type | 'changed' | 'deleted' | 'new' | 'to-delete' | The kind of change: changed differs from the site, deleted is on the site but not in the vault, new is in the vault but not on the site, and to-delete is unchanged and can be removed. |
Links to this page: