isResourceLockedForPath
Checks whether the note at the given path is currently locked.
Import:
import { isResourceLockedForPath } from 'obsidian-dev-utils/obsidian/resource-lock';Signature:
function isResourceLockedForPath(app: App, pathOrFile: PathOrFile): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
app | App | The Obsidian app instance. |
pathOrFile | PathOrFile | The path or file of the note to check. |
Returns: boolean — true if the note has at least one active lock, false otherwise.