Currently, DropboxAdapter::listContents() calls Client::listFolder(), does some processing on $result['entries'] if any are present, and returns the entries.
If I understand correctly, I think that this needs to also take into account the possibility that not all results are returned with the first request and instead $result['has_more'] may be TRUE, which means that Client::listFolderContinue($result['cursor']) should be called in a loop, collecting all entries until $result['has_more'] is FALSE.
The code for listContents() could be changed to something like this:
Currently,
DropboxAdapter::listContents()
callsClient::listFolder()
, does some processing on$result['entries']
if any are present, and returns the entries.If I understand correctly, I think that this needs to also take into account the possibility that not all results are returned with the first request and instead
$result['has_more']
may be TRUE, which means thatClient::listFolderContinue($result['cursor'])
should be called in a loop, collecting all entries until$result['has_more']
is FALSE.The code for
listContents()
could be changed to something like this: