`wget -r -e robots=off -nH --cut-dirs=3 --header "X-Dataverse-key: $API_TOKEN" --content-disposition https://borealisdata.ca/api/datasets/:persistentId/dirindex?persistentId=IDENTIFIER"`
We expected that the dataset should download in a file hierarchy as outlined in the documentation, “Using this API, wget --recursive (or a similar crawling client) can be used to download all the files in a dataset, preserving the file names and folder structure; without having to use the download-as-zip API.” https://guides.dataverse.org/en/latest/api/native-api.html#view-dataset-files-and-folders-as-a-directory-index
When testing on a local machine, it seems to work as expected, so we're wondering if it's an issue related to using S3 on our production instance.
I also created an issue for this, but I probably should have just asked here first instead! https://github.com/IQSS/dataverse/issues/8836