Google 驱动器中文件夹的大小
Size of the folder in Google Drive
我浏览了文档并搜索了代码。 Google Drive SDK for iOS?
中有什么方法可以获取文件夹的大小及其内容吗?
GTLDriveFile
有一个 属性 fileSize
,但它是 0
文件夹。 properties
属性 是 nil
。我在哪里可以找到它?
也许我应该为它编写一个新查询?
@Vive,基于此文档Working with Folders,
Folders are specialized files with metadata but no content. There are a number of additional operations that can be used on folders to query and manage child entries.
据此previous SO question、"You are getting the size of the folder object, not its contents. The api doesn't support getting a folder content's size. You need to recursively calculate it, using appengine task queues for example."
我希望这可以帮助您创建所需查询的解决方法。
我浏览了文档并搜索了代码。 Google Drive SDK for iOS?
中有什么方法可以获取文件夹的大小及其内容吗?GTLDriveFile
有一个 属性 fileSize
,但它是 0
文件夹。 properties
属性 是 nil
。我在哪里可以找到它?
也许我应该为它编写一个新查询?
@Vive,基于此文档Working with Folders,
Folders are specialized files with metadata but no content. There are a number of additional operations that can be used on folders to query and manage child entries.
据此previous SO question、"You are getting the size of the folder object, not its contents. The api doesn't support getting a folder content's size. You need to recursively calculate it, using appengine task queues for example."
我希望这可以帮助您创建所需查询的解决方法。