From 4499b08afcdae64349994df95542d5133ba4efcf Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 26 Oct 2019 22:01:07 +0100 Subject: [PATCH] drive: log an ERROR if an incomplete search is returned --- backend/drive/drive.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/drive/drive.go b/backend/drive/drive.go index 44f0a7fa8..10aeebba1 100644 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -744,7 +744,7 @@ func (f *Fs) list(ctx context.Context, dirIDs []string, title string, directorie fields += ",quotaBytesUsed" } - fields = fmt.Sprintf("files(%s),nextPageToken", fields) + fields = fmt.Sprintf("files(%s),nextPageToken,incompleteSearch", fields) OUTER: for { @@ -756,6 +756,9 @@ OUTER: if err != nil { return false, errors.Wrap(err, "couldn't list directory") } + if files.IncompleteSearch { + fs.Errorf(f, "search result INCOMPLETE") + } for _, item := range files.Files { item.Name = f.opt.Enc.ToStandardName(item.Name) // Check the case of items is correct since