Skip to content

SyncLocalFile

Unofficial

A local file record Sync keeps, as kept in SyncPluginInstance.localFiles.

Import:

import type { SyncLocalFile } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface SyncLocalFile

Properties

PropertyTypeDescription
ctimenumberThe creation time, in milliseconds since the epoch; 0 for a folder.
folderbooleanWhether the entry is a folder.
hashstringThe content hash; empty when the file changed since it was last hashed, and for a folder.
mtimenumberThe modification time, in milliseconds since the epoch; 0 for a folder.
pathstringThe vault path.
previouspathstringThe path the file had before a rename not yet pushed to the server; empty when there is none.
sizenumberThe size in bytes; 0 for a folder.
synchashstringThe content hash last pushed to or downloaded from the server; empty when there is none.
synctimenumberWhen the file was last pushed, in milliseconds since the epoch; 0 when it has a change still to push.

Links to this page: