commit | 8959851a96bcf0ccf60df0869872ab7f848abf06 | [log] [tgz] |
---|---|---|
author | Ryan Hitchman <hitchmanr@gmail.com> | Fri Dec 10 10:43:45 2010 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Fri Dec 10 10:43:45 2010 +1100 |
tree | c83f8ae3ce8cf412fa66c543ae56a0e0d1cdf8a0 | |
parent | ae605268488e49f4c4f0e46ac0fb69d7129d9f0c [diff] [blame] |
os: make MkdirAll work with symlinks Fixes #1149. R=adg CC=golang-dev https://golang.org/cl/3564041
diff --git a/src/pkg/os/path.go b/src/pkg/os/path.go index 74c83ab..b762971 100644 --- a/src/pkg/os/path.go +++ b/src/pkg/os/path.go
@@ -14,7 +14,7 @@ // and returns nil. func MkdirAll(path string, perm uint32) Error { // If path exists, stop with success or error. - dir, err := Lstat(path) + dir, err := Stat(path) if err == nil { if dir.IsDirectory() { return nil