From 8b79406878f8da7fe20774d9cb52677846cf8abc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 28 Jan 2026 21:27:50 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- docs/runtime/file-io.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/runtime/file-io.mdx b/docs/runtime/file-io.mdx index 6eb942454f..a0e3eb150e 100644 --- a/docs/runtime/file-io.mdx +++ b/docs/runtime/file-io.mdx @@ -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`: