]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix build.
authorShenghou Ma <minux.ma@gmail.com>
Tue, 10 Dec 2013 04:46:21 +0000 (23:46 -0500)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 10 Dec 2013 04:46:21 +0000 (23:46 -0500)
CL 36800043 and CL 36930044 have a merge conflict that I overlooked.

R=golang-dev
CC=golang-dev
https://golang.org/cl/39850043

src/pkg/os/file.go

index 18cd61d3a8491d5c56211ef9a4135dd08dfa11fc..b4a745801621585eaf6197b678d286da2c839c2c 100644 (file)
@@ -250,3 +250,8 @@ func Create(name string) (file *File, err error) {
 
 // lstat is overridden in tests.
 var lstat = Lstat
+
+// Rename renames (moves) a file. OS-specific restrictions might apply.
+func Rename(oldpath, newpath string) error {
+       return rename(oldpath, newpath)
+}