将 2 个文件夹与 filecmp 进行比较不起作用

问题描述

如果两个文件夹内部相等,我会尝试比较它们 -

我用这个代码试过了

print(path)
print(toPath)
print(filecmp.cmp(path,toPath))

但输出总是

C:\Users\Polzi\Documents\DEV\userza123\OLD_STRUCTURE\Billing\customers\2020\01\ZAT201
C:\Users\Polzi\Documents\DEV\userza123\NEW_STRUCTURE\Billing\customers\ZAT201\2020\01
False

但在我看来,它们都是 100% 相等的:

文件夹 1:

enter image description here

文件夹 2:

enter image description here

知道为什么这两个文件夹根据 filecmp.cmp 函数不同吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)