Ronald Oussoren <[email protected]> added the comment:
I'm not sure what your code tries to accomplish, does it check that
``f.parent`` refers to the same location as ``ref_file``? A clearer solution
for that would be ``f.parent.resolve() == ref_file.resolve()``.
----
The argument to match, glob and rglob cannot be Paths because the argument is
not a path but a pattern. Those are conceptually different.
What would ``Path("dir/some.py").match(Path("*.py"))`` return?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45889>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com