Message331782
The documentation for pathlib PurePath.match(needle) says it accepts "glob-style pattern.".
For an absolute path with a recursive pattern (**) it doesn't match correct for more than 1 directory level.
All of the assertions in the attached file should pass.
The issue I've seen is on the attached file. I'm using Python 3.7.1 and have also tested this against Python 3.6.6 with the pathlib module on PyPi.
Absolute path glob'ing with a recursive pattern works as expected:
entries = pathlib.Path('/var').glob('/var/**/*.log')
Once this issue is confirmed, I would be happy to test & contribute a fix |
|
Date |
User |
Action |
Args |
2018-12-14 06:40:24 | anthony shaw | set | recipients:
+ anthony shaw |
2018-12-14 06:40:23 | anthony shaw | set | messageid: <1544769623.98.0.788709270274.issue35488@psf.upfronthosting.co.za> |
2018-12-14 06:40:23 | anthony shaw | link | issue35488 messages |
2018-12-14 06:40:23 | anthony shaw | create | |
|