0 votes
Hi, I would like to get the names of the managed folder/s that serve as input to my recipe.

However, when I do input_B_names = get_input_names_for_role('managed_folder'), I get something like:
[MYPROJECT.somerandomkey]

The list does not contain the name I gave my managed_folder. It does contain the actual folder in DSS. I cannot therefore use the elements of the list as input to dataiku.Folder() function.

Is there a way I can get the names of the managed folder inputs?

 

thanks
asked by

1 Answer

0 votes

Hi,

managed folders have both a name and an identifier (the "somerandomkey" in your case). The dataiku.Folder() function accepts both identifiers and names. If you need to translate identifier to name, you can do:

mf = dataiku.Folder(identifier)
name = mf.get_info()["name"]

Regards,
   Frederic

answered by
686 questions
705 answers
528 comments
434 users