Skip to content

Instantly share code, notes, and snippets.

@rah003
rah003 / appsScript_ListFilesFolders_Mesgarpour.js
Last active May 13, 2022 09:59 — forked from abubelinha/appsScript_ListFilesFolders_Mesgarpour.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
* - Main function 3: List all files in current folder
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
@rah003
rah003 / VirtualUriMappingEval.groovy
Created November 11, 2019 14:06 — forked from mkgl/VirtualUriMappingEval.groovy
Show all Virtual URI mappings that matched a given URI and their associated weights
@Field private registry
import groovy.transform.Field
import info.magnolia.objectfactory.Components
import info.magnolia.virtualuri.VirtualUriRegistry
import static java.util.stream.Collectors.joining
registry = Components.getComponent(VirtualUriRegistry.class)