0

I looked answers from this question Download file from Google Drive to local folder from Google Apps Script

The answers to above questions only give instructions to download a single file or folder, But I want to download a small no.(say 50) of random files from a folder, Is there any way to do this programmatically?

  • Welcome to stack please read [ask] have you tried please show us by editing your question and adding an [example]. – DaImTo Apr 02 '21 at 14:58

1 Answers1

1

I would suggest by starting with file.list to return the first 100 files on your google drive account, you can then loop through them and download each of them one at a time. The file.list method has an option called q which would allow you to search for only files with in a directory using parents.

yes all of this can be done programmatically

DaImTo
  • 88,623
  • 26
  • 153
  • 389