Vault.appendBinary method
Vault › appendBinary
Official
Add data to the end of a binary file inside the vault.Signature:
appendBinary(normalizedPath: string, data: ArrayBuffer, options?: DataWriteOptions | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| normalizedPath | string | Path to file, use {@link normalizePath} to normalize beforehand. |
| data | ArrayBuffer | The data to append. |
| options? | DataWriteOptions | undefined | (Optional) options |
Returns: Promise<void> — A promise that resolves when the file is appended.
Since: 1.12.3
Example:
await app.vault.adapter.appendBinary('foo/bar.md', new Uint8Array([1, 2, 3]).buffer);