List all Google Drive Files and Folders

With Google Scripts you can generate a Google Drive Tree with all the files and folders (and sub-folders). You can either start with the root (main) folder or specify a folder name – this is helpful when you have tons of files in your Google Drive and retrieving the entire list can cause the script to time out.