One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Individual IT S
8 years agoHelpful | Level 5
new files not returned by /files/list_folder
Are there currently problems with the API?
My App does not return any newly created files/folders with "/files/list_folder"
Files that have been in dropbox for a while are listed, but if I add a new file it does not appear in the result.
the '/files/search' endpoint seems to work fine. All files, new and old are returned.
- Greg-DB
Dropbox Staff
When you call /2/files/list_folder, make sure you check the 'has_more' value in the response. If it is true, you need to call back to /2/files/list_folder/continue in order to get more results. (And likewise, check the 'has_more' value in the response from /2/files/list_folder/continue.)
The /2/files/list_folder[/continue] results are paginated, so you aren't guaranteed to get everything returned on the first page. You can find more information in the documentation for the two endpoints:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
You can then store and re-use the latest returned 'cursor' to get only new changes on further calls to /2/files/list_folder/continue.
If you're already doing that, please share your code and the unexpected output.- Individual IT SHelpful | Level 5
has_more is set to false
reply with include_media_info = true
array (size=3) 'entries' => array (size=0) empty 'cursor' => string 'AAFM2pu7z-vt16PJ_1mKnWZIblA7uxNiuXA_Af4kxILWGfNmsJACcdNSZrUA3Wv9p9MuvEw_OhreLnGkGBOsV0tuz_qu1avXG6qTeCDJ1W7170cXZ67nI50-6ZIxE3-4HXrL4KMmMGdlPYdlhN7k7kytJw3mIiCqWnKoq4EsWJrTLA' (length=174) 'has_more' => boolean false
reply with include_media_info = false
array (size=3) 'entries' => array (size=2) 0 => array (size=10) '.tag' => string 'file' (length=4) 'name' => string 'cache_docu.dia' (length=14) 'path_lower' => string '/joomla_files/cache_docu.dia' (length=28) 'path_display' => string '/joomla_files/cache_docu.dia' (length=28) 'id' => string 'id:san8zhurWicAAAAAAAAc7Q' (length=25) 'client_modified' => string '2017-06-09T14:20:09Z' (length=20) 'server_modified' => string '2017-06-09T14:20:10Z' (length=20) 'rev' => string '660600ad8d97' (length=12) 'size' => int 4472 'content_hash' => string '7cf660c4a88b17f900287edb2ef728a0b49ce1d69e5532de7773155e649b4023' (length=64) 1 => array (size=10) '.tag' => string 'file' (length=4) 'name' => string 'perspective-quote.jpg' (length=21) 'path_lower' => string '/joomla_files/perspective-quote.jpg' (length=35) 'path_display' => string '/joomla_files/perspective-quote.jpg' (length=35) 'id' => string 'id:san8zhurWicAAAAAAAAdDA' (length=25) 'client_modified' => string '2017-06-09T16:48:56Z' (length=20) 'server_modified' => string '2017-06-09T16:48:56Z' (length=20) 'rev' => string '664200ad8d97' (length=12) 'size' => int 393731 'content_hash' => string 'ea37ea1befc86a0e4130e80de81e3753ca930c8d61e9616472ccae1f0d55c8e3' (length=64) 'cursor' => string 'AAHNzyNFInUFiVdxQgOVOH7DLoPxjUORb9Vkcdr53fy1v2UNNBTnZSmQfCN-UqDGzxRITM77x03GvwFGz38yHCel6wcVxTeLQaIP4Fp2VwkGuCKSEDSzT8jjEgeFFpcf66-nuexOWy-_hLVqmyAo0G60p7edv__GscLDdVoecM7DoA' (length=174) 'has_more' => boolean false
- Greg-DB
Dropbox Staff
Thanks for following up. When using include_media_info = true, that can be expected sometimes. I'll follow up on the other thread as well:
https://www.dropboxforum.com/t5/API-support/listFolder-with-includeMediaInfo-not-listing-all-available-files/m-p/225034#M12179
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 2 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!