0
votes

My problem is I am not able to do folder level search in google drive through my third party application. When we search inside a folder, I want items from the current folder and subfolders. But when i am searching, I am getting results only from the current folder being searched, that is results from subfolders is not fetching. Given below is the api I am using,

https://www.googleapis.com/drive/v2/files/folderid

please reply as early as possible

Thanks in advance.

1
Can you provide some code?Steve Gomez

1 Answers

0
votes

Google Drive folders are not folders.

"Parent Folders" are actually simple properties of a file, eg. a file can have multiple parents.

If you want to descend into subfolders, you'll need to do it yourself, or have your app make all of its files children of a common folder (remembering that children can have multiple parents. If you do it yourself, resist the urge to recurse - it's slow, expensive and error prone.

See How do I search sub-folders and sub-sub-folders in Google Drive?