Skip to content

isFolder

Checks if the given file is a folder.

Import:

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

Signature:

function isFolder(file: unknown): boolean

Parameters:

ParameterTypeDescription
fileunknownThe file to check.

Returns: booleantrue if the file is a folder, false otherwise.