Vault.create() method
Create a new plaintext file inside the vault.
Signature:
create(path: string, data: string, options?: DataWriteOptions): 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 | (Optional) (Optional) |
Returns:
Promise<
TFile
>