Skip to content

FileManager.getMarkdownNewFileParent method

FileManager › getMarkdownNewFileParent

Unofficial

Gets the folder that new markdown files should be saved to, based on the current settings.

Signature:

getMarkdownNewFileParent(path: string): TFolder

Parameters:

Parameter Type Description
path string The path of the current opened/focused file, used when the user wants new files to be created in the same folder as the current file.

Returns: TFolderThe folder that new markdown files should be saved to.