path_to function

Find path to a particular kind of item