Get Current Drive User
Automatically get Current Drive User on drive.google.com. Report which Google account Google Drive is signed in as in this browser: display name and email, read from Google's account button. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Drive scripts.
Input
None
Output
loggedIn requiredname optionalemail optionalFAQ
Move a Google Drive file to the Bin
Moves a file to Drive's Bin (never a permanent delete), given just the file's id — its parent folder is resolved automatically.
Upload a file to Google Drive
Upload one file into a Google Drive folder, or into My Drive when no folder is given, and return the stored file's id, name and link. Pass filename to choose the name it is stored under. When the folder already holds a file with that name, ifExists decides: fail (the default) uploads nothing, keepBoth adds a second file with a numbered name, replace adds a new version of the existing file and keeps its id.
List a Google Drive folder
List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, dates, owner and link, folders first, one page at a time: pass nextPageToken back as pageToken to read the next page. Omit folderId to list My Drive's root. An empty folder returns empty lists.
