Skip to content

Instantly share code, notes, and snippets.

@wtfaremyinitials
Created July 27, 2016 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtfaremyinitials/4c41af2ddf6674dd5490cd9a2d48692b to your computer and use it in GitHub Desktop.
Save wtfaremyinitials/4c41af2ddf6674dd5490cd9a2d48692b to your computer and use it in GitHub Desktop.
Google Drive fix
// School created an archive folder of last years stuff, but finding that
// folder required searching for it. This made the archive accessible.
// This can also be used to put a single file in multiple folders
function fixDrive() {
var root = DriveApp.getRootFolder()
var archive = DriveApp.getFolderById("[snip]")
root.addFolder(archive)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment