Skip to content

FileManager.createNewMarkdownFile method

FileManager › createNewMarkdownFile

Unofficial

Creates a new Markdown file in the vault at specified location.

Signature:

createNewMarkdownFile(location: TFolder, filename: string, contents: string): Promise<TFile>

Parameters:

Parameter Type Description
location TFolder Location to create the file in.
filename string Name of the file to create.
contents string Contents of the file to create.

Returns: Promise<TFile>A promise that resolves to the new file.