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:
| Parameter | Type | Description |
|---|---|---|
| path | string | Vault absolute path for the new file, with extension. |
| data | string | text content for the new file. |
| options? | DataWriteOptions | undefined | (Optional) |
Since: 0.9.7