The concept of folder is different in S3. You don’t need to create any. They are just a part of the file name.
So just specify a path prefix to the key/filename when you store a file, and the folders will be auto created.
Then to list a folder files - just specify the path prefix in listFiles action.