()
| 208 | self, path: str, content: str = "", mode: int = 0o644 |
| 209 | ) -> dict[str, Any]: |
| 210 | def _run() -> dict[str, Any]: |
| 211 | abs_path = os.path.abspath(path) |
| 212 | os.makedirs(os.path.dirname(abs_path), exist_ok=True) |
| 213 | with open(abs_path, "w", encoding="utf-8") as f: |
| 214 | f.write(content) |
| 215 | os.chmod(abs_path, mode) |
| 216 | return {"success": True, "path": abs_path} |
| 217 | |
| 218 | return await asyncio.to_thread(_run) |
| 219 |
nothing calls this directly
no test coverage detected