Unable to create a new directory inside the managed folder of Dataiku.
Hi Team
we are having a managed folder in Dataiku which we have created with the help of BOX plugin. Below is the configuration of the managed folder.
Now, we want to create a new directory inside this folder with the help of R recipe of Dataiku.
As of now we are able to read and write any dataset from this folder with the help of below function of Dataiku in R recipe.
dkuManagedFolderDownloadPath()
dkuManagedFolderUploadPath()
Thanks
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,107 Neuron
Have you tried via Python? Also you can do it via the GUI as well.
-
yes I tried with python as well but nothing works for me also, I can't use GUI to create new directories because the directories will be dynamically created as per our business use case.
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,107 Neuron
Please post your Python code and any errors that you get.
-
I am getting the permission denied error while using the below python snippet and also previously I also got the same issue while reading any file from this same folder but then I used "get_download_stream()" function which helps me to read any file from this folder.
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,107 Neuron
When you are using Dataiku managed folders you are NOT allowed to use Python's folder methods to read and write, you need to use the Dataiku API. If you want to create a subfolder in the managed folder just append the folder path to the file name you are creating and Dataiku will create the folder for you. Here is some sample code:
https://community.dataiku.com/t5/Using-Dataiku/Creating-a-folder-within-a-folder/td-p/15485