Displaying a S3 Bucket as Nested Directories in Rails
The component of the app I am currently working on for WCAI, researchers need to be able to download data files. Many of these files are more than a gigabyte in length. After deciding to store the files on S3, it was important to create a secure and easy to use interface to access and download these files.
Here is the files model I created to treat files stored on aws the same as things stored in the database.
Files are displayed to uses using a tutorial on collapse tree for file structures. A simple helper function converts the data structure to the proper nested list explained in this example.