def is_same2(dir1, dir2, raise_exc=True, **kwargs):
"""
Compare two directory trees content. Only compare files in both directories.
Return False if they differ, True is they are the same.
"""
cmp = filecmp.dircmp(dir1, dir2, **kwargs)
return _dir_cmp(cmp, raise_exc)
评论列表
文章目录