added a file to recursively add subdirectories to the path