Detect duplicate files/directories in a file tree.