Trying to check folder exists in 'appdata' folder before creating one. Hence I do get file.list with following code:
GTLQueryDrive *folderExistsQuery = [GTLQueryDrive queryForFilesList];
folderExistsQuery.q = [NSString stringWithFormat:@"mimeType='application/vnd.google-apps.folder' and trashed=false and 'appdata' in parents and title='%@'",folderName];
The result is an error.Strange thing When I remove either 'appdata' in parents
or title='%@'
options in the query I don't get any error. Someone could you please explain whats going wrong here?
Any modification to solution are also welcome.
Edit
Printing description of error:
Error Domain=com.google.GTLJSONRPCErrorDomain Code=500 "The operation couldn’t be completed. (Internal Error)" UserInfo=0x1030d5c00 {error=Internal Error, NSLocalizedFailureReason=(Internal Error), GTLStructuredError=GTLErrorObject 0x10308d890: {message:"Internal Error" data:[1] code:500}}