Skip to content

createTFolderInstance

Unofficial

Creates and properly initializes the instance of obsidian#TFolder even the underlying folder does not exist. This doesn’t create the missing folder on the file system.

Import:

import { createTFolderInstance } from '@obsidian-typings/obsidian-catalyst-latest/implementations';

Signature:

function createTFolderInstance(app: App, path: string): TFolder

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.
pathstringThe path to the folder.

Returns: TFolder — The created obsidian#TFolder instance.