Download zip with nested dict

Hi there,
I would like to ask if it is possible to create a zip file as a DownloadResult, in which the zipped_files contain a nested dictionary? So the result would be that the zip file contains folders in which the data is neatly stored. Currently, my code returns a NotImplementedError.
If it is yet not possible, Iā€™d like to turn this question into a feature request.
Cheers, Yida

Good morning Yida,

Nesting can be achieved by adding the nested path in the key of the dictionary. For example:

zipped_files = {'nested/file_1.txt': file_1, 'nested/file_2.txt': file_2}