Scans a directory tree to find duplicate files or ensure identical trees