Lua not much. Programming in general counting since I started learning, for 4 years more or less, but I've never done anything too big yet.
By passing the sublevel as an optional parameter, with the purpse of not using it as a closure, right?
Also I noticed that when there are no more items in one parent, and childrens are displayed, lines for those parents continue to be displayed even though they have no more direct items. I don't know how to explain it.
For example I create this structure, and you'll see what i meen
folder1 -> item1, item2, item3
folder2 - item1
If displayed in