Refactor getDirectories => call getChildrens now