1
0
mirror of https://github.com/golang/go synced 2024-11-23 08:00:05 -07:00

path/filepath: document that Walk does not follow symlinks

Fixes #4759.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7304043
This commit is contained in:
Russ Cox 2013-02-04 22:59:30 -05:00
parent 572d984eaa
commit a60ffed9e7

View 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 {