glob
GlobSearch
Source code in muxtools/utils/glob.py
__init__(pattern, allow_multiple=False, dir=None, recursive=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
|