What is doublestar pattern matching?
masterdoublestar provides path pattern matching and globbing with support for the ** (globstar) pattern. This allows for recursive matching of files and directories.
Pattern Behavior
**matches any number of path components (files and directories) recursively.- Constraint: The
**must appear as a path component by itself. For example,/path**is invalid and behaves like/path*. To match everything under a path, use/path/**or/path/*/**. - Directory Matching:
/path/**matches all files and directories under the path, whereas/path/**/will only match directories.
Examples
Given the structure:
grandparent
`-- parent
|-- child1
`-- child2**/child*matcheschild1andchild2.grandparent/**/child?matcheschild1andchild2.**/parent/*matcheschild1andchild2.**matches everything recursively.