bers added the comment:
> 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,
Terry J. Reedy added the comment:
https://docs.python.org/3/library/filecmp.html#filecmp.cmpfiles
I consider not working for absolute path names to be a bug. Did your example
work with relative paths?
--
nosy: +terry.reedy
title: Explicit or correct behavior of filecmp.cmpfiles w/ ab