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:
| 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.