2

How to find out the total number of documents exposed via Google Docs?

1
  • What do you mean by exposed? Do you mean shared with you? Created by you? Opened by you? Mar 21, 2013 at 17:34

1 Answer 1

1

Goto script.google.com and start a new script and copy in the following code:

function doGet() {  
  Logger.log(DocsList.getAllFiles().length);
}

De-bug the code by pressing the "bug" button. An authorization menu will popup, that will ask permission to access Docs.

When having granted the script access to Docs, then play the script by pressing the "play" button. This might take a while, since it must read all files.

Press Ctrl + enter to view the logger (menu views/logs). Here the amount of files is displayed.

EDIT
See screenshot:
enter image description here

3
  • I tried running this script, but it doesn't show me any output. function doGet() { Logger.log(DocsList.getAllFiles().length); }
    – Rpj
    Mar 22, 2013 at 10:59
  • @Rpj Did you press the two buttons?
    – Jacob Jan
    Mar 22, 2013 at 11:11
  • @Rpj Make sure to press Ctrl + Enter afterwards to show the logger info !!
    – Jacob Jan
    Mar 22, 2013 at 11:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.