You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestRenameOverwriteDest suggests that on all OS'es except plan9, when the target path of os.Rename already exists, it will be replaced.
It might be nice to add that to the docs: for example on Windows it is not obvious (syscall_windows.go explicitly adds the MOVEFILE_REPLACE_EXISTING flag - there's no way to tell without either looking at the code or testing)
The text was updated successfully, but these errors were encountered:
TestRenameOverwriteDest
suggests that on all OS'es except plan9, when the target path ofos.Rename
already exists, it will be replaced.It might be nice to add that to the docs: for example on Windows it is not obvious (syscall_windows.go explicitly adds the
MOVEFILE_REPLACE_EXISTING
flag - there's no way to tell without either looking at the code or testing)The text was updated successfully, but these errors were encountered: