MCPcopy
hub / github.com/opentrace/opentrace / _base_dir

Function _base_dir

agent/src/opentrace_agent/cli/credentials.py:53–59  ·  view source on GitHub ↗

Return ``~/.opentrace/``, creating it with restricted permissions if needed.

()

Source from the content-addressed store, hash-verified

51
52
53def _base_dir() -> Path:
54 """Return ``~/.opentrace/``, creating it with restricted permissions if needed."""
55 d = Path.home() / _OPENTRACE_DIR
56 if not d.exists():
57 d.mkdir(parents=True, exist_ok=True)
58 _secure_path(d)
59 return d
60
61
62def _secure_path(path: Path) -> None:

Callers 8

_salt_pathFunction · 0.85
load_tokensFunction · 0.85
save_tokensFunction · 0.85
clear_tokensFunction · 0.85
_org_tokens_dirFunction · 0.85
load_clientFunction · 0.85
save_clientFunction · 0.85
clear_clientFunction · 0.85

Calls 1

_secure_pathFunction · 0.85

Tested by

no test coverage detected