Skip to content

asArrayOfFolders

Converts an array of abstract files to an array of folders.

Import:

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

Signature:

function asArrayOfFolders(abstractFiles: TAbstractFile[]): TFolder[]

Parameters:

Parameter Type Description
abstractFiles TAbstractFile[] The abstract files to convert.

Returns: TFolder[] — The array of folders.