This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bers
Recipients bers, terry.reedy
Date 2022-01-29.08:21:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643444486.04.0.365182283199.issue46512@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2022-01-29 08:21:26berssetrecipients: + bers, terry.reedy
2022-01-29 08:21:26berssetmessageid: <1643444486.04.0.365182283199.issue46512@roundup.psfhosted.org>
2022-01-29 08:21:26berslinkissue46512 messages
2022-01-29 08:21:25berscreate