Am developing ios app including google drive. In google drive when am trying to list files, it displays all folders, subfolders, subfiles in single page itself. These is my code
GTLQueryDrive *query = [GTLQueryDrive queryForFilesList];
[driveService executeQuery:query completionHandler:^(GTLServiceTicket *ticket,
GTLDriveFileList *filesList,
NSError *error) {
if (error == nil) {
[FilesFromGoogleDrive addObjectsFromArray:filesList.items
];
};
I dont want to list all files in main page. I need similar to google drive application for accessing folders, subfolders, subfiles in sequential way.Am trying this from past one week but there is no good result. So please help me how to access folders, subfolders.
If you want to list all files in a folder identified by
folderId, you can use the following code (from https://developers.google.com/drive/v2/reference/children/list):Another option is to search for files having
folderIdin their Parents collection:https://developers.google.com/drive/search-parameters
For instance, you can have a search query like the following:
Where ‘1234567’ is the id of the folder you want to list files for.