file isdirectory name
Returns 1 if file name is a directory, 0 otherwise.
See also:
Tcl syntax help - Category Command - Category Introspection