MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / _write

Function _write

lib/cli/tests/experimental/test_eval_crew.py:3343–3348  ·  view source on GitHub ↗
(path: Path, text: str = "x", seconds_ago: float = 0.0)

Source from the content-addressed store, hash-verified

3341
3342
3343def _write(path: Path, text: str = "x", seconds_ago: float = 0.0) -> Path:
3344 path.parent.mkdir(parents=True, exist_ok=True)
3345 path.write_text(text)
3346 when = datetime.now(timezone.utc).timestamp() - seconds_ago
3347 os.utime(path, (when, when))
3348 return path
3349
3350
3351def _a_project_recorded(directory: Path, minutes_ago: float = 10) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected