How do I get getFiles() to fetch ALL the files in the folder in Google Drive. right now it only fetches the top 250 files and stops.
var files = DocsList.getFolder('Mendeley Desktop').getFiles();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DocsList.DEFAULT_RESULT_SIZEis currently 250, so by default, you’ll get a maximum of 250 results as a response fromgetFiles().If you need more results, you can use the other
getFiles()method,getFiles(start, max)to get up toDocsList.MAX_RESULT_SIZE(currently 500) results at once, and use it with an offset to get the nextDocsList.MAX_RESULT_SIZEfiles.