Skip to content

createTFileInstance

createTFileInstance(app, path): TFile

Defined in: src/obsidian/implementations/Functions/createTFileInstance.ts:14

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

Parameters

app

App

path

string

Returns

TFile