1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:04:43 -07:00

cmd/present: skip the "golang.org" directory

Change-Id: I732194c22062c77c431dcec57f9ef832f1dc1afe
Signed-off-by: Shenghou Ma <minux@golang.org>
Reviewed-on: https://go-review.googlesource.com/1512
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Shenghou Ma 2014-12-14 03:11:40 -05:00 committed by Andrew Gerrand
parent 05fa16d285
commit 14ecce811f

View File

@ -139,8 +139,8 @@ func dirList(w io.Writer, name string) (isDir bool, err error) {
}
d := &dirListData{Path: name}
for _, fi := range fis {
// skip the pkg directory
if name == "." && fi.Name() == "pkg" {
// skip the golang.org directory
if name == "." && fi.Name() == "golang.org" {
continue
}
e := dirEntry{