glob
glob ?switches? name ?name ...?
The names of the files that match glob patterns. In Tcl 8.6 a pattern with no match is an error, unless -nocomplain. In Tcl 9.1 it gives an empty list.
Options
| Option | What it does |
|---|---|
-nocomplain |
No match gives an empty list. |
-directory DIR |
Matches in DIR. |
-types TYPES |
Only files of the types, such as f and d. |
-tails |
Gives the names without the folder of -directory. |
Facts
- Capability:
file. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.