Create function to walk directory.