Vive Vive - 1 year ago 122
iOS Question

Size of the folder in Google Drive

I've browsed the documentation & searched in code. Is there any way to get the size of the folder and it's contents in Google Drive SDK for iOS?


has a property
, but it's
for folders. The
property is
. Where can I look for it?

Maybe I should compose a new query for it?

Answer Source

@Vive, based on this documentation 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.

As stated from this 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."

I hope this helps you create a workaround the query you need.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download