Skip to content

Vault.create method

Vault › create

Official

Create a new plaintext file inside the vault.

Signature:

create(path: string, data: string, options?: DataWriteOptions | undefined): Promise<TFile>

Parameters:

ParameterTypeDescription
pathstringVault absolute path for the new file, with extension.
datastringThe text content.
options?DataWriteOptions | undefinedWrite options.

Returns: Promise<TFile>

Since: 0.9.7