-canread

Synopsis

-canread "file"

A predicate to check if a file is readable

Parameters

"file" - the file to check.

Returns

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

Examples

if (!-canread "/etc/shadow") { println("Looks like I can not read the shadow file"); }

Looks like I can not read the shadow file

See Also