True if the system path named by the string expression exists and is a directory,
and 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 the string expression
exists and is a directory. Using isnt instead of is will reverse this result.