diff --git a/httpstaticserver.go b/httpstaticserver.go index cf7557f..4cda77a 100644 --- a/httpstaticserver.go +++ b/httpstaticserver.go @@ -403,6 +403,10 @@ func (s *HTTPStaticServer) hJSONList(w http.ResponseWriter, r *http.Request) { func (s *HTTPStaticServer) makeIndex() error { var indexes = make([]IndexFileItem, 0) 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 + } if info.IsDir() { return nil }