Skip to content

Instantly share code, notes, and snippets.

@MauricioMoraes
MauricioMoraes / list-files-in-folder.js
Created June 2, 2016 11:56 — forked from hubgit/list-files-in-folder.js
List all files in a folder (Google Apps Script)
function listFilesInFolder() {
var folder = DocsList.getFolder("Maudesley Debates");
var contents = folder.getFiles();
var file;
var data;
var sheet = SpreadsheetApp.getActiveSheet();
sheet.clear();