CanvasPluginInstance.getNewFileParent method
CanvasPluginInstance › getNewFileParent
Unofficial
Gets the folder a new canvas file should be created in.Signature:
getNewFileParent(sourcePath: string, newFilePath?: string | undefined): TFolderParameters:
| Parameter | Type | Description |
|---|---|---|
| sourcePath | string | The path of the current file. |
| newFilePath? | string | undefined | The path of the file being created. |
Returns: TFolder — The destination folder.