isdir
Prototype: isdir(filename)
Return type: class
Description: Returns whether the named object filename
is a directory.
The CFEngine process must have access to filename
in order for this to work.
Arguments:
filename
: File object name, in the range"?(/.*)
Example:
bundle agent example
{
classes:
"isdir" expression => isdir("/etc");
reports:
isdir::
"Directory exists..";
}