Started on list directory function.