mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
attempt two for skipping files in the file walk (#105)
This commit is contained in:
@@ -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, "/")
|
||||||
|
|||||||
Reference in New Issue
Block a user