# std.Io.Dir: introduce renamePreserve and use it in File.Atomic.link · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ee574f665c4e3d1be4950b307ce3ff8324f13f46)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ee574f665c4e3d1be4950b307ce3ff8324f13f46

Requested commit: ee574f665c4e3d1be4950b307ce3ff8324f13f46

Commit: ee574f665c4e3d1be4950b307ce3ff8324f13f46

Tree: 711757fd21992e3cc5297061b2fd9cf9d1f1d679

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Dir: introduce renamePreserve and use it in File.Atomic.link

breaking change: the error for renaming over a non-empty directory now
returns error.DirNotEmpty rather than error.PathAlreadyExists.

```

## Parents

- [8e1850e277c3112eda44b8bb3de95ef1791eccfa](https://git.cafe/gitcafe/zig/commit/8e1850e277c3112eda44b8bb3de95ef1791eccfa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ee574f665c4e3d1be4950b307ce3ff8324f13f46?format=markdown)
