For listing of files and their download link in google drive: google script
So basically this script is made to automate the stuff of creating direct download links and view links of the files present in specific Folders with the name of the file and save it in a spreadsheet.
1.) Copy the script and paste it in google app script.
2.) Enter the name of the folder whose files you want to list and generate link,For example we aree using this "ERP" folder which have some PDF's
3.) It will interupt you for permission that it is not verified just click on advance and got to script then allow permission it is only for one time.
4.) After it the script will execute and spreadsheet will be created