readdir

A command in the TclX package.

readdir ?-hidden? dirPath

Return the contents of the directory named by dirPath as a list of filenames. Only includes entries starting with a dot if -hidden is given. Never includes “.” or “..”.

See also
glob