File tree 1 file changed +5
-2
lines changed 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
23
23
arbitrary order. No tilde expansion is done, but ``* ``, ``? ``, and character
24
24
ranges expressed with ``[] `` will be correctly matched. This is done by using
25
25
the :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 `.
28
31
(For tilde and shell variable expansion, use :func: `os.path.expanduser ` and
29
32
:func: `os.path.expandvars `.)
30
33
You can’t perform that action at this time.
0 commit comments