Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/util/glob.py @ 310:1371ceb6fad6
glob: also describe the "**/" pattern
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 09 Mar 2025 20:43:20 +0100 |
| parents | 16a5c337fcb9 |
| children | 6d1add815d14 |
line wrap: on
line diff
--- a/cutils/util/glob.py Sun Mar 09 18:21:35 2025 +0100 +++ b/cutils/util/glob.py Sun Mar 09 20:43:20 2025 +0100 @@ -8,6 +8,7 @@ .. seealso:: - https://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#getPathMatcher-java.lang.String- - https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob + - Mercurial: :command:`hg help patterns` The following rules are used to interpret glob patterns: @@ -17,6 +18,8 @@ - The ``**`` characters matches zero or more characters crossing directory boundaries. +- ``**/`` matches zero or more subdirectories; files do not match. + - The ``?`` character matches exactly one character of a name component. - The backslash character (``\``) is used to escape characters that
