Is there an existing issue for this?
Description
Currently, the API does not offer the ability to capture the folder structure of datasets, flattening the entire folder structure. This means that downloading files via the API will destroy any folder information.
Suggested Implementation
There is no API endpoint that offers this information. Scraping it from each dataset's page should be possible.