搜索文件夹'appdata'文件夹内 [英] Search folder inside 'appdata' folder
问题描述
GTLQueryDrive * folderExistsQuery = [GTLQueryDrive queryForFilesList] ;
folderExistsQuery.q = [NSString stringWithFormat:@mimeType ='application / vnd.google-apps.folder',trashed = false和'appdata'在父母和title ='%@',folderName];
结果是一个错误。当我删除'appdata'在父母
或 title ='%@'
查询中的选项我没有收到任何错误。有人可以请你解释这里出了什么问题吗?
对解决方案进行任何修改也是受欢迎的。
编辑
打印错误描述:
错误域= com.google.GTLJSONRPCErrorDomain代码= 500操作不能(内部错误)UserInfo = 0x1030d5c00 {error =内部错误,NSLocalizedFailureReason =(内部错误),GTLStructuredError = GTLErrorObject 0x10308d890:{message:Internal Errordata:[1] code:500}}
包含标题和父母的查询在 drive.appdata
和 drive.file
作用域。如果我们不打破安装的应用程序,您可以暂时添加 drive.readonly.metadata
。该修复已被推回,但我试图确保我们尽快修复它。
另一个相似的问题:列出带有查询的文件时出错
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}}
There is a problem with queries that contain title and parents on drive.appdata
and drive.file
scope. You can either add drive.readonly.metadata
temporarily if we're not breaking your installed apps. The fix has been pushed back, but I'm trying to make sure we're fixing it as soon as possible.
Another similar issue: Error when listing files with query
这篇关于搜索文件夹'appdata'文件夹内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!