Skip to content

VaultTransaction.create method

VaultTransaction › create

Creates a file with the given content, recording its removal as the inverse.

Signature:

create(path: string, data: string): Promise<TFile>

Parameters:

ParameterTypeDescription
pathstringThe path of the file to create.
datastringThe content of the file.

Returns: Promise<TFile>A Promise resolving to the created TFile.