Google Drive whoami (signed-in account)
Returns the Google account signed in to Google Drive (email and name). If no Google account is signed in, the run fails with a signed-out error that says to sign in to Drive, so it can be used to check a session before running other Drive scripts.
Input
authuser optionalWhich signed-in Google account to use, by its email address or its index (0 for the first). Omit for Google's default account.
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, with folders and files in separate lists, all in one answer for folders of up to 1000 items; a larger folder fails. Omit folderId to list My Drive's root (its folderName is null). Pass authuser to choose the signed-in Google account. An empty folder returns empty lists. Fails when signed out, and on an id that is unknown or names a file.
