检索"谷歌文档"与谷歌驱动的API创建的IOS文件大小 [英] Retrieve a "Google doc" created file size with the google drive api for ios

查看:147
本文介绍了检索"谷歌文档"与谷歌驱动的API创建的IOS文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让使用谷歌驱动器的SDK IOS保存在谷歌驱动器帐户的文件的文件大小。

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... .

如果我错了,将AP preciate你能不能告诉我在哪里可以找到一个谷歌文档的文件大小创建的文件。

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

谢谢,
       DOM

Thanks, dom

推荐答案

从上面的意见,我阅读的谷歌SDK文档中......谷歌驱动器SDK API不提供谷歌文档中创建的文件的大小。

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)谷歌文档可以在不同的格式导出他们每个人可能有不同的大小,所以要求一个谷歌的文档生成文件的文件大小是不明确的,直到你将其导出。

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

这篇关于检索"谷歌文档"与谷歌驱动的API创建的IOS文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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