Skip to content

isEmptyFolder

Checks if a folder is empty.

Import:

import { isEmptyFolder } from 'obsidian-dev-utils/obsidian/vault';

Signature:

function isEmptyFolder(app: App, pathOrFolder: PathOrFolder): Promise<boolean>

Parameters:

ParameterTypeDescription
appAppThe application instance.
pathOrFolderPathOrFolderThe path or folder to check.

Returns: Promise<boolean> — A Promise that resolves to a boolean indicating whether the folder is empty.