Do we have a command to know the size of the container in swift?

asked 2014-09-16 08:06:12 -0600

ebyenjoys gravatar image


I am looking for a command to list the size of the container in particular object. I have tried to use the stat and list. But both these sub commands do not return the size of the container. Kindly take a look on my results.image description

I don't know why the bytes are returning zero. Kindly help me to sort this out.

edit retag flag offensive close merge delete



Does this return a size:

swift stat a.mp4

If it has no size then the container would not have size. it depends on if it looks recursively or if it always returns 0 since the container has no size.

mpetason gravatar imagempetason ( 2014-09-16 13:10:11 -0600 )edit

Thanks a lot. It helped me. The file was seems to be corrupted and it was returning zero size.

ebyenjoys gravatar imageebyenjoys ( 2014-09-16 21:37:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-16 21:38:25 -0600

ebyenjoys gravatar image

Issue got resolved, as the uploaded file was corrupted it returned size zero.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-16 08:06:12 -0600

Seen: 106 times

Last updated: Sep 16 '14