From: Russ Cox Date: Tue, 5 Feb 2013 03:59:30 +0000 (-0500) Subject: path/filepath: document that Walk does not follow symlinks X-Git-Tag: go1.1rc2~1140 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a60ffed9e73a5956b6400ae8863856967982c779;p=gostls13.git path/filepath: document that Walk does not follow symlinks Fixes #4759. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7304043 --- 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 {