fix breadcrumb when path is /somedir/, got different feeling of /somedir

This commit is contained in:
codeskyblue
2016-08-26 13:34:08 +08:00
parent 31cafdfd16
commit 7a1831c6ec
2 changed files with 5 additions and 1 deletions

View File

@@ -405,7 +405,8 @@ func (s *HTTPStaticServer) makeIndex() error {
var err = filepath.Walk(s.Root, func(path string, info os.FileInfo, err error) error {
if err != nil {
log.Printf("WARN: Visit path: %s error: %v", strconv.Quote(path), err)
return err
return filepath.SkipDir
// return err
}
if info.IsDir() {
return nil