]> Cypherpunks repositories - gostls13.git/commit
os: document that Rename is not atomic on non-Unix platforms
authorAlan Donovan <adonovan@google.com>
Tue, 17 Jan 2023 16:30:48 +0000 (11:30 -0500)
committerAlan Donovan <adonovan@google.com>
Tue, 17 Jan 2023 18:12:07 +0000 (18:12 +0000)
commitc0799f7015e6cae37c21294bb94f56050fda5f4e
tree90ac08853d06a19c235e2adcfa1d65aeefc17f2b
parentd74c31f0ba8b7940350f93df044a5cb7002e02d0
os: document that Rename is not atomic on non-Unix platforms

Windows provides no reliable way to rename files atomically.

The Plan 9 implementation of os.Rename performs a deletion
if the target exists.

Change-Id: Ife5f9c97b21f48c11e300cd76d8c7f715db09fd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/462395
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Alan Donovan <adonovan@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/os/file.go