检索“Google 文档"使用 google drive api for ios 创建的文件大小 [英] Retrieve a "Google doc" created file size with the google drive api for ios

查看:29
本文介绍了检索“Google 文档"使用 google drive api for ios 创建的文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 google drive sdk for ios 获取保存在 google drive 帐户中的文件的文件大小.

I'm trying to get the file size of the files saved in a google drive account using the google drive sdk for ios.

当谷歌驱动器中的文件不是用谷歌文档创建时没有问题,但如果文件是用谷歌文档创建的,我找不到具有大小的 json 键/值对:它看起来不像提供信息... .

There is no issue when the file in google drive is not created with Google Docs, but if the file is created with google doc I can't find the json key/value pair with the size: it does not look like the information is provided... .

如果我错了,希望您能指导我在哪里找到 Google Doc 创建文件的文件大小.

If I'm wrong, would appreciate you can direct me where to find the file size of a Google Doc created file.

谢谢,dom

推荐答案

根据上面的评论和我对 Google SDK 文档的阅读... Google Drive SDK API 不提供在 google doc 中创建的文件的大小.

From the comments above and my reading of the Google SDK docs... Google Drive SDK API do not provide the size of a file created within google doc.

原因如下:

1) 这些文件大小不计入计算您的谷歌驱动器的空间使用量2) google doc 可以以不同的格式导出,并且每种格式可能具有不同的大小,因此在导出之前询问 google doc 生成文件的文件大小是模棱两可的.

1) Those file size do not count in calculating the space usage of your google drive 2) A google doc can be exported in different formats and each of them may have a different size, so asking for the file size of a google doc generated file is ambiguous until you export it.

感谢 rmaddy 和 pinoyyid 的评论,

Thanks rmaddy and pinoyyid for your comments,

 dom

这篇关于检索“Google 文档"使用 google drive api for ios 创建的文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆