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