]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: document that Walk does not follow symlinks
authorRuss Cox <rsc@golang.org>
Tue, 5 Feb 2013 03:59:30 +0000 (22:59 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 5 Feb 2013 03:59:30 +0000 (22:59 -0500)
Fixes #4759.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7304043

src/pkg/path/filepath/path.go

index bbd738d8c81293421b6c58e748661cabde54c1f5..bcb81824abd04995ae8ff6232f63edf76ae03ce2 100644 (file)
@@ -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 {