(path: str, text: str)
| 279 | pass |
| 280 | |
| 281 | |
| 282 | def append_text_sync(path: str, text: str) -> None: |
| 283 | with open(path, "a", encoding="utf-8") as f: |
| 284 | f.write(text or "") |
| 285 | f.flush() |
| 286 | try: |
| 287 | os.fsync(f.fileno()) |
| 288 | except OSError: |
| 289 | pass |
| 290 | |
| 291 |
no test coverage detected