Skip to content

ObsidianTransport.registerVault method

ObsidianTransport › registerVault

Registers a vault path so Obsidian can target it.

On desktop: uses Electron IPC to open the vault and polls for readiness. On mobile: pushes vault files to the device and restarts the app.

Signature:

registerVault(vaultPath: string): Promise<void>

Parameters:

ParameterTypeDescription
vaultPathstringThe absolute path to the vault folder.

Returns: Promise<void>