Write a metadata entry. If mtime is specified, set it as the mtime of the entry. Otherwise, the current time is used. Returns True if the entry is successfully written, False otherwise.
(self, name: str, data: bytes, mtime: float | None = None)
| 44 | |
| 45 | @abstractmethod |
| 46 | def write(self, name: str, data: bytes, mtime: float | None = None) -> bool: |
| 47 | """Write a metadata entry. |
| 48 | |
| 49 | If mtime is specified, set it as the mtime of the entry. Otherwise, |
| 50 | the current time is used. |
| 51 | |
| 52 | Returns True if the entry is successfully written, False otherwise. |
| 53 | """ |
| 54 | |
| 55 | @abstractmethod |
| 56 | def remove(self, name: str) -> None: |