Skip to content

ResourceLockComponent.isLockedForPath method

ResourceLockComponent › isLockedForPath

Checks whether the note at the given path is currently locked by any plugin.

Signature:

isLockedForPath(pathOrFile: PathOrFile): boolean

Parameters:

ParameterTypeDescription
pathOrFilePathOrFileThe path or file of the note to check.

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