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:24anthony shawsetrecipients: + anthony shaw
2018-12-14 06:40:23anthony shawsetmessageid: <1544769623.98.0.788709270274.issue35488@psf.upfronthosting.co.za>
2018-12-14 06:40:23anthony shawlinkissue35488 messages
2018-12-14 06:40:23anthony shawcreate