muxtools.utils.glob
GlobSearch
GlobSearch(pattern: str, allow_multiple: bool = False, dir: PathLike = None, recursive: bool = True)
Glob Pattern based search for files
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pattern
|
str
|
Glob pattern |
required |
allow_multiple
|
bool
|
Will return all file matches if True and only the first if False |
False
|
dir
|
PathLike
|
Directory to run the search in. Defaults to current working dir. |
None
|
recursive
|
bool
|
Search recursively |
True
|