在google drive sdk中插入新文件时返回对象中没有headRevisionId
代码示例:
File file = drive.files().insert(body , mediaContent).execute();
headRevisionId = file.getHeadRevisionId();
headRevisionId 中将有 null
而下一个代码将返回值:
File file = drive.files().insert(body , mediaContent).execute();
File file2 = file = gDriveApiClient.files().get(file.getId()).execute();
headRevisionId = file.getHeadRevisionId();