SyncLocalFile
Unofficial
A local file record Sync keeps, as kept in SyncPluginInstance.localFiles.
Import:
import type { SyncLocalFile } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface SyncLocalFileProperties
| Property | Type | Description | |
|---|---|---|---|
| ctime | number | The creation time, in milliseconds since the epoch; 0 for a folder. | |
| folder | boolean | Whether the entry is a folder. | |
| hash | string | The content hash; empty when the file changed since it was last hashed, and for a folder. | |
| mtime | number | The modification time, in milliseconds since the epoch; 0 for a folder. | |
| path | string | The vault path. | |
| previouspath | string | The path the file had before a rename not yet pushed to the server; empty when there is none. | |
| size | number | The size in bytes; 0 for a folder. | |
| synchash | string | The content hash last pushed to or downloaded from the server; empty when there is none. | |
| synctime | number | When the file was last pushed, in milliseconds since the epoch; 0 when it has a change still to push. |
Links to this page: