Closed antoniomorais360 closed 5 years ago
Well, now the only error is that is not showing the directory, only files :/
The folder is "Unknown", like in your example. It is just a bug. Any chance to fix it?
Hm, it works for me as long as I set the permissions on everything to be public-readable: https://s3.amazonaws.com/nolanlawson/index.html
Look back to your link There are some "Unknown" in your link too :)
I'm seeing the same issue, root level directories within the bucket are not showing up. Any ideas?
I'm not maintaining this tool anymore; sorry about that.
For future reference, and since this was actually a simple solution, the problem is caused by a mismatch between the XML output and the RegExp being used to find folders.
Line 57 should be changed from: var FOLDERPATTERN = new RegExp('\$folder\$$'); to: var FOLDER_PATTERN = new RegExp('\/$');
The current XML output of S3 bucket contents simply has a trailing "/" after the name of a key if it is a directory, which is what the new RegExp checks for... A "/" as the last character.
Cool, can you open a pull request?
This project is archived, so I am closing this issue. Thanks!
oops.. sorry. I am receiving the error below:
"Skip to content This repository Search Pull requests Issues Gist @antoniomorais360 Watch 1 Star 18 Fork 4 nolanlawson/pretty-s3-index-html Branch: master pretty-s3-index-html/index.html 55610b on 4 Sep @nolanlawson nolanlawson improve speed, reliability 1 contributor RawBlameHistory 191 lines (156 sloc) 5.49 KB"