Whoa, unexpected.
One could also say that it's not a bug, as object stores don't distinguish files from directories, as they're all objects. It's the implementation that does.
So it may be more likely that the s3 client/driver/config needs to compensate.
ex. Cyberduck works fine.