MCPcopy Create free account
hub / github.com/1jehuang/jcode / read_argv

Function read_argv

scripts/jcode_memory_snapshot.py:78–85  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

76
77
78def read_argv(path: Path) -> list[str] | None:
79 try:
80 raw = path.read_bytes()
81 except Exception:
82 return None
83 if not raw:
84 return None
85 return [part.decode("utf-8", "ignore") for part in raw.split(b"\x00") if part]
86
87
88def parse_socket_path(cmd: str) -> str | None:

Callers 1

iter_jcode_processesFunction · 0.85

Calls 2

decodeMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected