Skip to content

ObsidianTransport.pushFiles method

ObsidianTransport › pushFiles

Pushes files into a vault directory on the target device.

On desktop this is a no-op (files are written to the local filesystem directly). On mobile this uses the device's file transfer mechanism (e.g. Appium pushFile).

Signature:

pushFiles(vaultPath: string, files: Record<string, Uint8Array<ArrayBufferLike>>): Promise<void>

Parameters:

ParameterTypeDescription
vaultPathstringThe absolute path to the vault folder.
filesRecord<string, Uint8Array<ArrayBufferLike>>Map of relative file paths to content buffers.

Returns: Promise<void>