MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / clear_pointer

Function clear_pointer

src/bridge/bridge_pointer.py:249–259  ·  view source on GitHub ↗

Remove the pointer for ``working_dir``. No-op if missing.

(working_dir: str)

Source from the content-addressed store, hash-verified

247
248
249def clear_pointer(working_dir: str) -> None:
250 """Remove the pointer for ``working_dir``. No-op if missing."""
251 path = _pointer_path(working_dir)
252 try:
253 os.unlink(path)
254 except FileNotFoundError:
255 return
256 except OSError as err:
257 logger.warning(
258 '[bridge:pointer] unlink(%s) failed: %s', path, err,
259 )

Callers 3

init_bridge_coreFunction · 0.90

Calls 1

_pointer_pathFunction · 0.85

Tested by 2