file...is directory

operator

Return type: Switch
Returns:       An operator that returns true if the system path named by the string expression exists and is a directory, and false otherwise. Using isnt will reverse this result.

Syntax
file string-expression (is | isnt) directory


Purpose

A test that succeeds if the system path named by the string expression exists and is a directory.

Related Concepts