(self, operation: ApplyPatchOperation)
| 56 | return ApplyPatchResult(output=f"Updated {relative}") |
| 57 | |
| 58 | def delete_file(self, operation: ApplyPatchOperation) -> ApplyPatchResult: |
| 59 | relative = self._relative_path(operation.path) |
| 60 | self._require_approval(operation, relative) |
| 61 | target = self._resolve(operation.path) |
| 62 | target.unlink(missing_ok=True) |
| 63 | return ApplyPatchResult(output=f"Deleted {relative}") |
| 64 | |
| 65 | def _relative_path(self, value: str) -> str: |
| 66 | resolved = self._resolve(value) |
nothing calls this directly
no test coverage detected