Skip to content

getAbstractFileOrNull

Retrieves an abstract file or null based on the provided path or abstract file.

Import:

import { getAbstractFileOrNull } from 'obsidian-dev-utils/obsidian/file-system';

Signature:

function getAbstractFileOrNull(params: GetAbstractFileOrNullParams): TAbstractFile | null

Parameters:

ParameterTypeDescription
paramsGetAbstractFileOrNullParamsThe parameters for the retrieval.

Returns: TAbstractFile | null — The abstract file if found, otherwise null.


Links to this page: