MCPcopy Index your code
hub / github.com/VectifyAI/OpenKB / _target_mode

Function _target_mode

openkb/locks.py:202–206  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

200
201
202def _target_mode(path: Path) -> int:
203 try:
204 return path.stat().st_mode & 0o777
205 except FileNotFoundError:
206 return _default_file_mode()
207
208
209def atomic_write_bytes(path: Path, content: bytes) -> None:

Callers 3

_copy_file_atomicFunction · 0.90
_publish_staged_fileFunction · 0.90
atomic_write_bytesFunction · 0.85

Calls 1

_default_file_modeFunction · 0.85

Tested by

no test coverage detected