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:
| Parameter | Type | Description |
|---|---|---|
| path | string | The path of the file to create. |
| data | string | The content of the file. |
Returns: Promise<TFile> — A Promise resolving to the created TFile.