cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

files/list_folder not returning all files

files/list_folder not returning all files

brotherlogic
Explorer | Level 3

I'm trying to pull in a list of all files from dropbox - I have a folder with ~ 500 files in it.

However, if I call list_folder, e.g.:

curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer REDACTED" \
--header "Content-Type: application/json" \
--data "{\"path\": \"/Tuckers\",\"recursive\": true,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true,\"include_non_downloadable_files\": true}" &> whee.txt

 

and then list the files:

grep -o path_lower whee.txt | wc
230 230 2530

I only get back a subset of the number of files. The response has_more is false, so I don't quite understand why all the files aren't being returned.

1 Reply 1

Greg-DB
Dropbox Staff

If has_more is false, you should be getting all of the results for that folder in the account for that access token. It doesn't look like you're doing anything wrong here, so we'll need to look into this more closely. Can you open an API ticket and share that 'whee.txt' file so we can investigate? Thanks in advance! 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?