From 5db82e594a711ca7b45f9ffb04b036e72df25c35 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 7 Nov 2023 17:33:29 -0800 Subject: [PATCH] weed/server: fix dropped webdav error --- weed/server/webdav_server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index 945c68279..35c554839 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -568,6 +568,9 @@ func (f *WebDavFile) Readdir(count int) (ret []os.FileInfo, err error) { ret = append(ret, &fi) return nil }) + if err != nil { + return nil, err + } old := f.off if old >= int64(len(ret)) {