diff options
Diffstat (limited to 'src/os/root_windows.go')
| -rw-r--r-- | src/os/root_windows.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/root_windows.go b/src/os/root_windows.go index 81fc5c320c..f4d2f4152b 100644 --- a/src/os/root_windows.go +++ b/src/os/root_windows.go @@ -315,6 +315,10 @@ func chtimesat(dirfd syscall.Handle, name string, atime time.Time, mtime time.Ti return syscall.SetFileTime(h, nil, &a, &w) } +func renameat(oldfd syscall.Handle, oldname string, newfd syscall.Handle, newname string) error { + return windows.Renameat(oldfd, oldname, newfd, newname) +} + func readlinkat(dirfd syscall.Handle, name string) (string, error) { fd, err := openat(dirfd, name, windows.O_OPEN_REPARSE, 0) if err != nil { |
