Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we list all files from a specific folder on Google Drive

We noticed that Google Drive API Javascript allows you to list all files from an specific folder, however it brings just basic details from the file. If we want to know more such as the file name we need to query the API again for each single file. Is there a way that we can list more details of the file such as the file name from a single folder list query?

Thanks

like image 410
Carlos Santini Avatar asked Nov 25 '25 01:11

Carlos Santini


1 Answers

I guess you used Children.list(). It only lists id of children which is not the function you want. You should rather use Files.list() with parameter q="'{{FOLDER_ID}}' in parents" and it will list all the files and its details of children of specific folder you want.

like image 165
JunYoung Gwak Avatar answered Nov 28 '25 16:11

JunYoung Gwak