Skip to content

filepath.Walk does not traverse symbolic links #4759

Closed
@gopherbot

Description

@gopherbot

by aray@google.com:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
http://play.golang.org/p/BQCIlpK_GM  demo "ls" that uses filepath.Walk
1. Try with normal directory with files (success)
2. Try on a symlink that points to the directory (failure)

What is the expected output?
Traverse the directory pointed by the symlink

What do you see instead?
No output

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Linux (ubuntu)

Which version are you using?  (run 'go version')
go1.0.3

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions