Several functions take
Regex patterns as arguments.
GlobMatch is provided by the Glob.jl package, and can be constructed using
glob"" string macro for example
glob"*/*.jl means all
.jl files immediately inside subdirectories.
Regex is created using a the
r"" string macro. The regular expression syntax is detailed in the Julia documentation
Each type of pattern, when used with a function, produces different but memorable behaviors. These are detailed in the following table with some annotations.
In the table
t refers to the tree being operated on
p refers to the pattern of type
T which is the pattern type.
"node" means a File or a FileTree.
❌ means the pattern type cannot be used with the given function.
|gets node at path ||gets subtree of matches ||gets subtree of matches  |
|❌||❌||move each match to |
|applies ||apply ||apply |
|Create a single node at p||❌||❌|
|❌||For every path in tree (could be non-leaf) which matches ||❌|
|||the parent of this node is still set to its original parent in
|||the subtree always has the same root as
|||regex matching string-matches an path string. Partial matches are allowed. surround the regex in