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

This commit is contained in:
Patrick Devine 2023-07-18 15:37:01 -07:00 committed by GitHub
parent 3e10f902f5
commit 9e15635c2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,8 @@ func list(c *gin.Context) {
if !info.IsDir() {
fi, err := os.Stat(path)
if err != nil {
return err
log.Printf("skipping file: %s", fp)
return nil
}
path := path[len(fp)+1:]
slashIndex := strings.LastIndex(path, "/")