Skip to content

asArrayOfFolders

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

Import:

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

Signature:

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

Parameters:

ParameterTypeDescription
abstractFilesTAbstractFile[]The abstract files to convert.

Returns: TFolder[] — The array of folders.