Using Google Drive api how can I get the children of a folder

320 views
Skip to first unread message

Sushma Boppana

unread,
Jan 17, 2017, 12:10:43 AM1/17/17
to Google APIs Explorer Users Forum
Using Google Drive api how can I get the children of a folder? Not just the direct children but all the files/folders under the actual folder. Is there a way to do that?


Thanks,
Sushma

John Boswell

unread,
Jan 17, 2017, 4:36:29 PM1/17/17
to Google APIs Explorer Users Forum
Looks like this describes the idea of how folders work: https://developers.google.com/drive/v3/web/folder

Direct children can be looked up by referencing the "parent" field of a file. If you want to build up the whole directory structure tree, presumably you can just look up the parent's parent, and so on.
Reply all
Reply to author
Forward
0 new messages