In my S3 buckets there are many directories at first level. Each containing data of it's own.
- Bucket
-- dir_1
-- file1
-- file2
-- dir_2
-- somefile
I want to fetch total size (including all the subobjects under it) of each first level object (dir_1, dir_2) in the bucket. I tried both ListObjects and ListObjectsV2 with different Prefix parameter values but either it's giving no data or all the data including object within objects