File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ according to the rules used by the Unix shell, although results are returned in
2323arbitrary order. No tilde expansion is done, but ``* ``, ``? ``, and character
2424ranges expressed with ``[] `` will be correctly matched. This is done by using
2525the :func: `os.scandir ` and :func: `fnmatch.fnmatch ` functions in concert, and
26- not by actually invoking a subshell. Note that unlike :func: `fnmatch.fnmatch `,
27- :mod: `glob ` treats filenames beginning with a dot (``. ``) as special cases.
26+ not by actually invoking a subshell.
27+
28+ Note that files beginning with a dot (``. ``) can only be matched by
29+ patterns that also start with a dot,
30+ unlike :func: `fnmatch.fnmatch ` or :func: `pathlib.Path.glob `.
2831(For tilde and shell variable expansion, use :func: `os.path.expanduser ` and
2932:func: `os.path.expandvars `.)
3033
You can’t perform that action at this time.
0 commit comments