Closed stolarczyk closed 3 years ago
why can't you just save it as a flat array with strings like "path/file.xyz" ?
yeah, that's another possibility. I was thinking to make files in subdirectories indented a level and listed just by the file name (like the level 1 files) and that's why the nested idea came to my mind. This would be cleaner from the UI perspective, but your suggestion is definitely easier to implement and that's what I'll do, I think.
Unless there is a way to serve a directory, we will need to traverse the asset directory and save their contents in a nested data structure, rather than a flat array of strings before saving as JSON.
For assets like
mm10/bismark_bt2_index:default
, which contain directories within assets directory the direct links to asset files don't work.here's an example of an asset dir structure: