In fact, I integrated google-drive-sdk with my iOS app. I can upload the specified file to Google Drive via google-drive-sdk for iOS. In addition, I want to provide functionality for selecting a folder from an accessible folder in which the user wants to download this file to Google Drive.
So, I found how to list all the files in Google Drive, but could not find a list of all the folders in Google Drive.
I also looked at the whole API link on the Google Developer site, but could not find a solution to this.
I found somewhere that using the folder folder below, you can do this, but that didn't work.
GTLQueryDrive *query = [GTLQueryDrive queryForFilesList]; query.q = @"mimeType='application/vnd.google-apps.folder' and trashed=false"; [self.driveService executeQuery:query completionHandler:^(GTLServiceTicket *ticket, GTLDriveFileList *files, NSError *error) { if (error == nil) { NSLog(@"Array of folder: %@", files.items); } else { NSLog(@"An error occurred: %@", error); } }];
So, is there a solution for getting a list of folders from Google Drive using google-drive-sdk?
source share