[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-01-28 21:27:50 +00:00
committed by GitHub
parent fad01ae8d8
commit 8b79406878

View File

@@ -171,13 +171,14 @@ await Bun.rename("source.txt", "dest.txt", "no-replace");
The `conflict` parameter controls behavior when the destination already exists:
| Mode | Description |
| ---- | ----------- |
| `"replace"` | Replace destination if it exists (default) |
| `"swap"` | Atomically swap the two files (Linux/macOS only, falls back to `"replace"` on Windows) |
| `"no-replace"` | Fail with an error if destination exists |
| Mode | Description |
| -------------- | -------------------------------------------------------------------------------------- |
| `"replace"` | Replace destination if it exists (default) |
| `"swap"` | Atomically swap the two files (Linux/macOS only, falls back to `"replace"` on Windows) |
| `"no-replace"` | Fail with an error if destination exists |
---
## Incremental writing with `FileSink`
Bun provides a native incremental file writing API called `FileSink`. To retrieve a `FileSink` instance from a `BunFile`: