Added functionality for accessing children of a directory