Struggling with the user interface while trying to replicate the functionality of an S3 bucket. My data is in JSON format:
{"name":"sam's file", "path":"testfile1.jpg"},
{"name":"sam's file", "path":"folder1/testfile2.jpg"},
{"name":"sam's file", "path":"folder1/testfile3.jpg"},
{"name":"sam's file", "path":"folder2/testfile4.jpg"},
{"name":"sam's file", "path":"folder2/testfile5.jpg"},
{"name":"sam's file", "path":"folder2/folder3/testfile6.jpg"},
Trying to use lodash to filter files based on a specified folder (e.g. folder2) and display all filenames within that folder along with any subfolders, excluding files. This will help me create the UI I need.
Expected result: testfile4.jpg, testfile5.jpg and folder3
I also need to distinguish between files and folders for UI presentation purposes. Any simpler solutions or suggestions?
Thanks, Sam