Forum Discussion

sagar_lonkar's avatar
sagar_lonkar
Explorer | Level 4
10 months ago

List folder continue API or SDK method return different result record count for each cursor

First we are calling list folder with limit as 200

 

limit UInt32(min=1, max=2000)?The maximum number of results to return per request. Note: This is an approximate number and there can be slightly more entries returned in some cases. This field is optional.

 

Then after getting first 200 records , we are calling list folder continue using following,

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

Here are getting result but each time total number of entries vary as follows,

 

200 (list folder , result entries count)

Below are list folder continue result entries count
130
86
5
14
206
4
27
30
149
3
31
1
3
22
210
203

 

  • sagar_lonkar's avatar
    sagar_lonkar
    Explorer | Level 4

    list folder continue , with cursor should return same count result (200 entries in above case) set for each call

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      The 'limit' parameter is used to set an approximate maximum number of entries to return per result page, per the documentation you mentioned.

       

      Due to various implementation details, the server may not return that many in every result, and so the count is not expected to necessarily be the same in every result.