I could figure this out but I don't have time. Would appreciate the help.
Here's what I need:
Code to add a folder. This code must read the selected node (if there is one) and determine if it is a folder or not. If it is a folder, it needs to be placed as a child under the selected folder.
Code to add an item (easy)
As above, if the selected node is a folder, it should be created as a child of this "folder" node.
Hope you don't mind this. As before, all of my points are available for the correct answer.