I need to list all files contained in a certain folder contained in my S3 bucket.
The folder structure is the following
/my-bucket/users/
S3 does not have directories, while you can list files in a pseudo directory manner like you demonstrated, there is no directory "file" per-se. You may of inadvertently created a data file called users//contacts//.
users//contacts//