Skip to content

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-catalyst-latest';

Signature:

export interface PublishFileDiff

Properties

PropertyTypeDescription
checkedbooleanWhether the change is selected for publishing.
ctimenumberThe creation time on the site, in milliseconds since the epoch; 0 for a new file.
mtimenumberThe modification time on the site, in milliseconds since the epoch; 0 for a new file.
pathstringThe vault path.
sizenumberThe 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: