Skip to content

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): boolean

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.
pathOrFilePathOrFileThe path or file of the note to check.

Returns: booleantrue if the note has at least one active lock, false otherwise.