-isHidden

Synopsis

-isHidden "file"

A predicate to check if a file is hidden

Parameters

"file" - the file to check.

Returns

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

Examples

foreach $user_dir (ls("/Users/")) { $file = getFileProper($user_dir, ".porn"); if (-exists $file && -isHidden $file) { $user = matches($user_dir, '/Users/(.*)')[0]; println("User $user is trying to hide porn!"); } }

User parsoff is trying to hide porn!

See Also