attempt two for skipping files in the file walk (#105)
This commit is contained in:
parent
3e10f902f5
commit
9e15635c2d
1 changed files with 2 additions and 1 deletions
|
@ -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, "/")
|
||||
|
|
Loading…
Reference in a new issue