This has been partly covered by Comparing the contents of two directories but I have a slightly twist on this problem.
I have directories Dir1 and Dir2. Their subdirectory structures should be the same, which is something I want to check. But I also want to check the files within them. They should have the same file names but every file within Dir1 has extension .type1 and every file in Dir2 has .type2. When I use the solution linked above Dir1/bob/file.type1 and Dir2/bob/file.type2 are viewed as different.
How do I make the above linked solution blind to extensions?