The AWS Console seems to be creating empty folders, creating a file with 0 bytes that ends with the '/' character
for example, PUT a 0-byte file named ThisisAnEmptyFolder /
Then, when listing objects in a folder, the aws tools you use can return a “file” called ThisisAnEmptyFolder / - which users will not want to see. Thus, you may need to enable logic (for example, this is not PHP!)
if (object.key != prefix)
show the file to the user
source
share