root: {
dir: {
subDir: {
subSubDir: {
...
},
...
},
subDir_2: {
...
}
},
dir_2: {
...
},
...
}
How do i retrieve only a single level of keys? E.g. i want to retrieve only keys under dir
. Results should contain [subDir
, subDir_2
, ...] and nothing else: no values, no nested keys etc. What is the most performant way to do that?