【发布时间】:2019-10-09 05:31:18
【问题描述】:
我正在尝试使用 java Google Drive API 查找文件夹的子文件夹
for (com.google.api.services.drive.model.File file : result.getFiles()) {
System.out.printf("Found file: %s (%s)\n", file.getName(), file.getId());
String fileId =file.getId();
FileList childern = service.files().list().setQ(" 'fileId' in parents").execute();
}
这里不是硬编码我动态获取的文件 ID 的值。
Error msg:
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"location" : "fileId",
"locationType" : "parameter",
"message" : "File not found: .",
"reason" : "notFound"
} ],
"message" : "File not found: ."
}
【问题讨论】:
-
你能添加整个错误代码吗?
-
添加错误信息
标签: java google-api google-drive-api google-api-java-client