Check whether a specific path is locked
controlcenter_check_lockCheck if a path can be modified by inspecting LOCK.txt files in it and parent directories, reporting the effective lock type, scope, and expiry. Fails closed to 'unknown' when verification fails.
Instructions
Answers whether one path may be modified, counting locks inherited from any parent directory — a LOCK.txt in a parent locks everything beneath it. Reports the effective lock with its type, scope and expiry: LOCK.user.* and LOCK.condition.* never expire on time. Read-only. Fails closed: if the path is unreadable, the configuration is missing or the check errors, the verdict is 'unknown' and safe-to-proceed is false — it never reports a path as free on a guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the file or directory that is about to be modified. |