Skip to content

asFolder

Converts an abstract file to a folder.

Import:

import { asFolder } from '@mnaoumov/obsidian-lib/file-system';

Signature:

function asFolder(abstractFile: TAbstractFile | null): TFolder

Parameters:

Parameter Type Description
abstractFile TAbstractFile | null The abstract file to convert.

Returns: TFolder — The folder.