glob¶
Hook for running python's glob module. Return a possibly empty list of path names that match pathname, which must be a string containing a path specification.
Inputs¶
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| pathname | str | True | The path to file or directory | |
| root_dir | str | None | False | The root dir to run glob from. |
| dir_fd | int | None | False | Similar to root_dir, but it specifies the root directory as an open directory descriptor instead of a path |
| recursive | bool | False | True | Search underlying directories. |
| include_hidden | bool | False | True | Include hidden files / dirs. |
Arguments¶
| Position | Argument | Type |
|---|---|---|
| 1 | pathname | str |
Returns¶
list