In S3 files with a null byte with a trailing slash, a pseudo-directory is created. This will cause folders to appear in the AWS browser interface.
For fog passing nil to the body argument, an empty file is created. So the following code will create a subdirectory ...
bucket.files.create( key: 'user_1_files/', body: nil )
source share