Message406922
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? |
|
Date |
User |
Action |
Args |
2021-11-24 12:24:12 | ronaldoussoren | set | recipients:
+ ronaldoussoren, nickpapior |
2021-11-24 12:24:12 | ronaldoussoren | set | messageid: <1637756652.55.0.55206028565.issue45889@roundup.psfhosted.org> |
2021-11-24 12:24:12 | ronaldoussoren | link | issue45889 messages |
2021-11-24 12:24:12 | ronaldoussoren | create | |
|