Unverified Commit 9e15635c authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

attempt two for skipping files in the file walk (#105)

parent 3e10f902
...@@ -195,7 +195,8 @@ func list(c *gin.Context) { ...@@ -195,7 +195,8 @@ func list(c *gin.Context) {
if !info.IsDir() { if !info.IsDir() {
fi, err := os.Stat(path) fi, err := os.Stat(path)
if err != nil { if err != nil {
return err log.Printf("skipping file: %s", fp)
return nil
} }
path := path[len(fp)+1:] path := path[len(fp)+1:]
slashIndex := strings.LastIndex(path, "/") slashIndex := strings.LastIndex(path, "/")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment