Disabling the Creation of 0-Byte Folder Objects in Amazon S3 Storage on Upload

When you upload files that are located in folders to S3 storage, Aspera® creates a 0-byte folder object to represent the folder. These objects enable Aspera clients, such as IBM Aspera Desktop Client and IBM Aspera Shares, to represent the folders in their user interfaces. If you programmatically upload many (millions) of objects and folders to S3 storage, disabling this feature decreases the number of objects that are created.

About this task

Warning: Disabling this option also disables browsing folders in your object storage that uses Aspera clients.

Procedure

  1. SSH to your S3 instance as root.
    > ssh -i identity_file -p 33001 ec2-user@ec2_host_ip
    #  su -
  2. Disable the creation of folder objects.
    Open C:\Program Files\Aspera\Enterprise Server\etc\trapd\s3.properties and locate the following line:
    #aspera.session.browse.mkdir.allowed = true

    Uncomment the line and set the value to false, as follows:

    aspera.session.browse.mkdir.allowed = false
  3. Restart Trapd.
    > systemctl asperatrapd restart