Filling tree menu with directories.
Added code for getting directories under a root and filling them into the tree menu.