file ... is directory

operator

Return type:
Switch
Returns:
true if the system path named by string-expression exists and is a directory, false otherwise.
Syntax
file string-expression (is | isnt) directory


Purpose

The file ... is directory test is used to determine if the system path named by string-expression exists and is a directory. Using isnt instead of is will reverse this result.