Read the full content of a knowledge file.
(self, category: str, path: str)
| 366 | return items |
| 367 | |
| 368 | def read(self, category: str, path: str) -> str: |
| 369 | """Read the full content of a knowledge file.""" |
| 370 | self.validate_path(category, path) |
| 371 | return self._jail(category).read_text(path) |
| 372 | |
| 373 | def write(self, category: str, path: str, content: str) -> Path: |
| 374 | """Create or update a knowledge file. |