isplain

Prototype: isplain(filename)

Return type: class

Description: Returns whether the named object filename is a plain/regular file.

Arguments:

  • arg1 : File object name, in the range "?(/.*)

Example:

bundle agent example
{
classes:

  "isplain" expression => isplain("/etc/passwd");

reports:

  isplain::

    "File exists..";

}