google-drive-apigoogle-drive-android-api

How to get folder size in the google drive using Drive API


In Android app, is it possibale to get the folder size in the google drive using the Drive API when I have the folder ID (driveId)? I tried:

driveId.getSize();

It dosn't work? any suggestion please?


Solution

  • you will need to recursively descend into the folder and add up the sizes.