meld can compare two directory if they have the same structure and name for files but can't really tell if I inside my foot folder, I have a folder root/X which is also present as root/category/b/X. (except all the file in it have been prepended by "foo" somehow)
For tools which can find differently names files you have for examples: fslint (gui) or fdupes (cli)