weed/server: fix dropped webdav error

This commit is contained in:
Lars Lehtonen 2023-11-07 17:33:29 -08:00 committed by Chris Lu
parent 2b9dda7d2e
commit 5db82e594a

View file

@ -568,6 +568,9 @@ func (f *WebDavFile) Readdir(count int) (ret []os.FileInfo, err error) {
ret = append(ret, &fi) ret = append(ret, &fi)
return nil return nil
}) })
if err != nil {
return nil, err
}
old := f.off old := f.off
if old >= int64(len(ret)) { if old >= int64(len(ret)) {