Added non-recursive get directories to prevent stack overflow. Will add method to get directories on node click as well.