Remove all chunks/files that may have been uploaded and close.
(self)
| 1196 | object.__setattr__(self, "_ensured_index", True) |
| 1197 | |
| 1198 | async def abort(self) -> None: |
| 1199 | """Remove all chunks/files that may have been uploaded and close.""" |
| 1200 | await self._coll.chunks.delete_many({"files_id": self._file["_id"]}, session=self._session) |
| 1201 | await self._coll.files.delete_one({"_id": self._file["_id"]}, session=self._session) |
| 1202 | object.__setattr__(self, "_closed", True) |
| 1203 | |
| 1204 | @property |
| 1205 | def closed(self) -> bool: |
no test coverage detected