From 1a1e86521f1d86c8be9a6e733dd0628d22e08b26 Mon Sep 17 00:00:00 2001 From: Xhofe Date: Sat, 16 Apr 2022 21:06:33 +0800 Subject: [PATCH] fix(quark): lost files while number of files > 100 (fix #947) --- drivers/quark/quark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/quark/quark.go b/drivers/quark/quark.go index 80442ab3..5a809426 100644 --- a/drivers/quark/quark.go +++ b/drivers/quark/quark.go @@ -103,7 +103,7 @@ func (driver Quark) GetFiles(parent string, account *model.Account) ([]model.Fil for _, f := range resp.Data.List { files = append(files, *driver.formatFile(&f)) } - if page*size >= resp.Metadata.Count { + if page*size >= resp.Metadata.Total { break } page++