Using the PHP SDK, you have a couple of options:
If you are looking for the size of each file, you can retrieve the list of files in a container first, then loop over them, call the
getContentLength()
method on each file in the loop.If you are looking for the total size taken up by all your 500,000 files, you can simply get the size of the container(s) they are in. Here is the code for that: https://github.com/rackspace/php-opencloud/blob/master/docs/userguide/ObjectStore/USERGUIDE.md#get-bytes-used.