-isDir

Synopsis

-isDir "file"

A predicate to check if a file is a directory

Parameters

"file" - the file to check.

Returns

True or false and this operator is only usable in a comparison context.

Examples

if (-isDir "/etc/") { println("It is a directory :)"); }

It is a directory :)

See Also