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?

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

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449