We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74c31f commit c0799f7Copy full SHA for c0799f7
src/os/file.go
@@ -338,6 +338,7 @@ var lstat = Lstat
338
// Rename renames (moves) oldpath to newpath.
339
// If newpath already exists and is not a directory, Rename replaces it.
340
// OS-specific restrictions may apply when oldpath and newpath are in different directories.
341
+// Even within the same directory, on non-Unix platforms Rename is not an atomic operation.
342
// If there is an error, it will be of type *LinkError.
343
func Rename(oldpath, newpath string) error {
344
return rename(oldpath, newpath)
0 commit comments