Skip to content

SyncServerFile

Unofficial

A file record the Sync server pushed, as kept in SyncPluginInstance.serverFiles.

Import:

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

Signature:

export interface SyncServerFile

Properties

PropertyTypeDescription
ctimenumberThe creation time, in milliseconds since the epoch.
deletedbooleanWhether the file was deleted or renamed away.
devicestringThe name of the device that pushed the file.
folderbooleanWhether the entry is a folder.
hashstringThe content hash.
initial?booleanWhether the record arrived during the initial sync.
mtimenumberThe modification time, in milliseconds since the epoch.
pathstringThe vault path.
sizenumberThe size in bytes.
uidnumberThe server version of the record.
usernumberThe id of the user who pushed the file.

Links to this page: