To list all the files in a Google Drive folder in Google Sheets please first copy the folder ID.
Note: It’s recommended to use this method for folders with fewer than 5000 files due to current limitations.
- Go to the Folder Tools Sidebar
- Add the Folder ID
- Click on the button List files.