S3 (and compatible storage services) don’t have a concept of directory and therefore you can’t create an empty directory.
S3 is key / value object storage. The key is the name of the object.
Only by convention we consider / in key name to indicate a new directory.
To create a directory /foo/ you must create at least one file e.g. /foo/bar.txt.
We could cheat and create e.g. an empty key with name /foo/ but we decided that it would be confusing when using other tools.