Skip to content

ResourceLockComponent.isLockedByAncestorForPath method

ResourceLockComponent › isLockedByAncestorForPath

Checks whether the path is locked directly or lies under a subtree-locked ancestor folder.

Signature:

isLockedByAncestorForPath(pathOrFile: PathOrFile): boolean

Parameters:

ParameterTypeDescription
pathOrFilePathOrFileThe path or file to check.

Returns: booleantrue if the path is itself locked or is covered by a subtree lock on an ancestor.