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:
parent
05fa16d285
commit
14ecce811f
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue