I am using s3cmd and i would like to know how to exclude all folders within a bucket and just sync the bucket root.
for example
bucket folder/two/ fo
As mentioned by @physiocoder excluding a folder is done the following way:
s3cmd --exclude 'foldername/*'
So that is different from the question but I landed on this page due to its title.