mardi 19 mai 2015

google-apps-script count files in folder

I've had a search but cannot seem to find what I am looking for.

I am seeking the code to enable me to do this pseudocode:

  1. Count number of files in specific Google Drive folder (by folder Id)
  2. If file count is above 'x' do this {other piece of code}
  3. else, exit

Can anyone help me out?

Aucun commentaire:

Enregistrer un commentaire