Skip to content

TemporaryVault.syncToDevice method

TemporaryVault › syncToDevice

Pushes all files from the local staging directory to the target device via the active transport's pushFiles().

On desktop transports this is a no-op (files are already local). On mobile transports (Appium) this pushes files to the device.

TemporaryVault.register calls this itself, so a populate-then-register sequence needs nothing extra. Call it directly only to carry across files written **after** registration: the host directory is not mirrored, so a later write into TemporaryVault.path stays on the host until this runs again.

Signature:

syncToDevice(transportOverride?: ObsidianTransport | undefined): Promise<void>

Parameters:

ParameterTypeDescription
transportOverride?ObsidianTransport | undefinedAn explicit transport to use. When omitted, falls back to the transport configured via the context provider.

Returns: Promise<void>