Assuming the ask is to sync to ECS S3 target, you can leverage <preserveDirectories>false</preserveDirectories>. Please refer to the description for this option "By default, directories are stored in S3 as empty objects to preserve empty dirs and metadata from the source. Turn this off to avoid copying directories. Note that if this is turned off, verification may fail for all directory objects"
Assuming the ask is to sync to ECS S3 target, you can leverage
<preserveDirectories>false</preserveDirectories>
. Please refer to the description for this option "By default, directories are stored in S3 as empty objects to preserve empty dirs and metadata from the source. Turn this off to avoid copying directories. Note that if this is turned off, verification may fail for all directory objects"