Message412058
> Did your example work with relative paths?
Yes, it does. Just append the following to my example code:
# actually diff the files - correctly!
files = [f.relative_to(dir_a) for f in dir_a.glob("*")]
(_, different, _) = filecmp.cmpfiles(dir_a, dir_b, files, shallow=False)
print("different:", *different)
Output then is
equal: C:\Users\bers\AppData\Local\Temp\tmp1p6jh4rg\a\foo.txt
different: foo.txt |
|
Date |
User |
Action |
Args |
2022-01-29 08:21:26 | bers | set | recipients:
+ bers, terry.reedy |
2022-01-29 08:21:26 | bers | set | messageid: <1643444486.04.0.365182283199.issue46512@roundup.psfhosted.org> |
2022-01-29 08:21:26 | bers | link | issue46512 messages |
2022-01-29 08:21:25 | bers | create | |
|