How to download a folder dataiku with python code ?
I want to download few folders from dataiku filesystem dataset but in python code. Can i get a hint or something that i can download these folders ?
Best Answer
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
Hi, you can't download folders via the API just files. You can however download all files in a Dataiku folder via the GUI:
https://community.dataiku.com/t5/Using-Dataiku/Download-all-files-in-a-managed-folder/td-p/8663
Answers
-
Thank you!
-
I want more details on that subject, what can we actually download with the API ?
I have the impression that we are forced to use the GUI to download something.
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,160 Neuron
You can download all the files in a Dataiku Managed Folder, you just have to use the folder.list_paths_in_partition() method to get all the files and loop through the list to download them. Below is a post with some sample code: