Skip to content

ResourceLockComponent.isMutationBlockedByAncestorForPath method

ResourceLockComponent › isMutationBlockedByAncestorForPath

Checks whether a vault mutation of the path is currently blocked by a shouldBlockMutations lock on the path itself or on a subtree-locked ancestor folder.

Signature:

isMutationBlockedByAncestorForPath(pathOrFile: PathOrFile): boolean

Parameters:

ParameterTypeDescription
pathOrFilePathOrFileThe path or file to check.

Returns: booleantrue if editing/deleting/renaming/moving/creating the path would throw a ResourceLockedError.