Skip to content
Advertisement

Return all files within a folder using Google Drive Java API

I’m able to retrieve all the files inside of my root folder using this code:

JavaScript

However I would like to return only the files inside the “test” folder under root, but this fails:

JavaScript

with this error:

JavaScript

Any idea what I’m doing wrong?

Advertisement

Answer

You missed the quotes around test.

And test cannot be the folder name, but the folder id.

‘FOLDER_ID’ in parents

Reference:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement