amazon-s3s3cmd

How to find zero byte files in Amazon S3


Is there a way to programmatically find zero bytes file in Amazon S3?

The total size of the bucket is more than 100G,
unlikely for me to sync back to server, then do a

find . -size 0 -type f

Solution

  • There is no direct process to search files of zero bytes in size at amazon s3. You can do it by listing all objects and then sort that items on the basis of size, then you can get all zero file size together.

    if you want get list of all file having size zero then you can use Bucket Explorer and list the objects of the selected bucket then click on size header (sort by size) it will keep together files size of zero byte together.

    Disclosure: I am a developer of Bucket Explorer.