MCPcopy
hub / github.com/cft0808/edict / _lock_path

Function _lock_path

scripts/file_lock.py:59–60  ·  view source on GitHub ↗
(path: pathlib.Path)

Source from the content-addressed store, hash-verified

57
58
59def _lock_path(path: pathlib.Path) -> pathlib.Path:
60 return path.parent / (path.name + '.lock')
61
62
63def atomic_json_read(path: pathlib.Path, default: Any = None) -> Any:

Callers 3

atomic_json_readFunction · 0.85
atomic_json_updateFunction · 0.85
atomic_json_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected