Nested dir creation

Hello All,

I’m trying to the below:

dir_var: {app1: [name: [a1,a2], dev: [1,2], prod: [11,12]],
app2: [name: [a3,a4], dev: [11,12], prod: [21.22]]}

env: dev

should create folders like this if env is ‘dev’
a1
a1/1
a1/2
a2
a2/1
a2/2
a3
a3/11
a3/12
a4
a4/11
a4/12

please help.

Thanks