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,
New submission from bers :
It is very easy to use filecmp.cmpfiles incorrectly by passing absolute path
names. This is because
1. the documentations does not say that relative path names have to be passed,
and
2. filecmp.cmpfiles does not issue a warning when absolute path names are
passed
bers added the comment:
Yes, understood! Thanks for the explanation.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from bers :
I did this on Windows 10:
P:\>python --version
Python 3.7.2
P:\>echo print 1, 2 > Test.py
P:\>python Test.py
File "Test.py", line 1
print 1, 2
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean p