def mattching_dir_files(dir1, dir2)
      dir1_files = dir_files(dir1).map {|f| f.sub("#{dir1}/",'') }
      dir2_files = dir_files(dir2).map {|f| f.sub("#{dir2}/",'') }

      matches = dir1_files & dir2_files

      unique_files(dir1, dir2_files, matches)
      unique_files(dir2, dir1_files, matches)

      matches
    end
def mattching_dir_files(dir1, dir2)
      dir1_files = dir_files(dir1).map {|f| f.sub("#{dir1}/",'') }
      dir2_files = dir_files(dir2).map {|f| f.sub("#{dir2}/",'') }

      matches = dir1_files & dir2_files

      unique_files(dir1, dir2_files, matches)
      unique_files(dir2, dir1_files, matches)

      matches
    end
Return files that exist in both directories (without dir names)