- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | anthony shaw |
|---|---|
| Recipients | anthony shaw |
| Date | 2018-12-14.06:40:23 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1544769623.98.0.788709270274.issue35488@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
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 |
| History | |||
|---|---|---|---|
| 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 |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
