Skip to content

CanvasPluginInstance.getNewFileParent method

CanvasPluginInstance › getNewFileParent

Unofficial

Gets the folder a new canvas file should be created in.

Signature:

getNewFileParent(sourcePath: string, newFilePath?: string | undefined): TFolder

Parameters:

Parameter Type Description
sourcePath string The path of the current file.
newFilePath? string | undefined The path of the file being created.

Returns: TFolderThe destination folder.