aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-02-04 22:59:30 -0500
committerRuss Cox <rsc@golang.org>2013-02-04 22:59:30 -0500
commita60ffed9e73a5956b6400ae8863856967982c779 (patch)
tree8af4479109a1c261b0dce79825f0fb0cf8dc575b /src/pkg/path
parent572d984eaa64e6e3a1a67ecde9f6a1038d76becc (diff)
downloadgo-a60ffed9e73a5956b6400ae8863856967982c779.tar.xz
path/filepath: document that Walk does not follow symlinks
Fixes #4759. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7304043
Diffstat (limited to 'src/pkg/path')
-rw-r--r--src/pkg/path/filepath/path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/path/filepath/path.go b/src/pkg/path/filepath/path.go
index bbd738d8c8..bcb81824ab 100644
--- a/src/pkg/path/filepath/path.go
+++ b/src/pkg/path/filepath/path.go
@@ -374,6 +374,7 @@ func walk(path string, info os.FileInfo, walkFn WalkFunc) error {
// and directories are filtered by walkFn. The files are walked in lexical
// order, which makes the output deterministic but means that for very
// large directories Walk can be inefficient.
+// Walk does not follow symbolic links.
func Walk(root string, walkFn WalkFunc) error {
info, err := os.Lstat(root)
if err != nil {