Can Google Apps Script read the contents of a public folder?

If there's a folder on someone's Drive with sharing set so anyone with the link can view it, can a Google Apps Script see its contents? That is:

DocsList.getFolderByID(id).getFiles()

will show me the contents of a folder on my (or the user's) Drive. But is there a similar method for viewing files in a publicly shared folder? Thanks.

Answers


If by "public folder" you mean "a folder in another user's Google Drive that has been shared as public", then the answer is yes.

Nothing special - just use the ID of the folder as you would your own. There are some methods that you will not be able to use, for example Document.getOwner() will complain about permissions.


Need Your Help

Permanently adding an item to an existing alertdialog?

android xml add alertdialog android-alertdialog

My goal is to permanently add an item to an existing AlertDialog.

How Can I get NSStrings containing any character into my database?

php mysql nsstring character

I let users write and then post what they have written to my MYSQL database, using PHP. I have been sending the strings as URLs and then $_GET['string'] in the php and then putting them in the dat...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.