Calculate S3 object(folder) size in java
问题 Im storing all types of files on amazon S3. In amazon S3 bucket, All files store in different folders, I know there is no concept of folder in amazon s3. Objects are only identified by their keys. if i store any file with key like 'mydocs/personal/profile-pic.jpg' that mean two parents folders(personal folder inside mydocs folder) will be created there. I want to calculate the size of any folder like 'mydocs' in java. I calculated bucket total size by using this code given below: public long