-isFile

Synopsis

-isFile "file"

A predicate to check if a file is a file (i.e. not a directory)

Parameters

"file" - the file to check.

Returns

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

Examples

if (-isFile "/tmp") { println("wth?!?"); }

See Also