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