7.0
7.0
Check out Release Notes to learn more about upgrading to 7.0.
- NEW: Recognize extended UNC paths.
- NEW: Allow escaping any character in Windows drives for better compatibility with
SPLIT
andBRACE
which
requires a user to escape{
,}
and|
to avoid expanding a pattern. - NEW:
raw_escape
now accepts theraw_chars
parameter so that translation of Python character back references can be disabled. - NEW: Search functions that use
scandir
will not return.
and..
for wildcard patterns that require iterating over a directory to match the files against a pattern. This matches Python's glob and is most likely what most users expect. Pattern matching logic is unaffected. - NEW: Add
SCANDOTDIR
flag to enable previous behavior of injecting.
and..
inscandir
results.
SCANDOTDIR
has no affect on match functions such asglobmatch
which don't use directory scanning. - NEW: Flag
NODOTDIR
has been added to disable patterns such as.*
from matching.
and..
. When enabled, matching logic is changed to require a literal pattern of.
and..
to match the special directories.
and..
. This is more Zsh like. - FIX: Negative extended glob patterns (
!(...)
) incorrectly allowed for hidden files to be returned when one of the subpatterns started with.
, even whenDOTMATCH
/DOTGLOB
was not enabled. - FIX: When
NOUNIQUE
is enabled andpathlib
is being used, you could still get non-unique results across
patterns expanded withBRACE
orSPLIT
(or even by simply providing a list of patterns). Ensure that unique results are only returned whenNOUNIQUE
is not enabled. - FIX: Fix corner cases with
escape
andraw_escape
with back slashes. - FIX: Ensure that
globmatch
does not matchtest//
with patterntest/*
. - FIX:
pathlib.match
should not evaluate symlinks that are on the left hand side of what was matched.