Skip to content

isResourceLockedForPath

Checks whether the note at the given path is currently locked.

Import:

import { isResourceLockedForPath } from '@mnaoumov/obsidian-lib/resource-lock';

Signature:

function isResourceLockedForPath(app: App, pathOrFile: PathOrFile): boolean

Parameters:

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.


Links to this page: