MCPcopy Create free account
hub / github.com/cactus-compute/cactus / _is_stale_binary

Function _is_stale_binary

python/src/cli.py:114–134  ·  view source on GitHub ↗
(binary_path, dependency_paths)

Source from the content-addressed store, hash-verified

112
113
114def _is_stale_binary(binary_path, dependency_paths):
115 binary_path = Path(binary_path)
116 if not binary_path.exists():
117 return True
118
119 try:
120 binary_mtime = binary_path.stat().st_mtime
121 except OSError:
122 return True
123
124 for dep in dependency_paths:
125 dep_path = Path(dep)
126 if not dep_path.exists():
127 continue
128 try:
129 if dep_path.stat().st_mtime > binary_mtime:
130 return True
131 except OSError:
132 continue
133
134 return False
135
136
137def _ensure_chat_binary(project_root, lib_path):

Callers 1

_ensure_chat_binaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected