Skip to content

Vault.getFileByPath method

Vault › getFileByPath

Official

Get a file inside the vault at the given path.

Signature:

getFileByPath(path: string): TFile | null

Parameters:

ParameterTypeDescription
pathstringThe path of the file.

Returns: TFile | null — The file, or null if it does not exist.

Since: 1.5.7