Iterate through Google Drive Folders and Files

The Google Script will iterate through all files and folders in your Google Drive and lists the file names and the folder names inside the console. You may to use the Folder Iterator if you have too many files in the Drive else the script will exceed the allotted execution time.