def METHOD_NAME(dir1, dir2):
    """ Compare directories for equality. """
    comparison = filecmp.dircmp(dir1, dir2)
    if (len(comparison.left_only) > 0) or (len(comparison.right_only) > 0):
        return False
    if (len(comparison.funny_files) > 0) or (len(comparison.diff_files) > 0):
        return False
    for subdir in comparison.subdirs:
        if not METHOD_NAME(dir1 / subdir, dir2 / subdir):
            return False
    return True