Skip to content

isEmptyFolder

Checks if a folder is empty.

Import:

import { isEmptyFolder } from '@mnaoumov/obsidian-lib/vault';

Signature:

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

Parameters:

Parameter Type Description
app App The application instance.
pathOrFolder PathOrFolder The path or folder to check.

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


Links to this page: