function

basename

A built-in CFEngine function in the data category that returns a string. basename is not called from the policy on your hosts.

Signature
basename(string, [string], ...)
Parameters
  1. string File path (.*)
  2. string Optional suffix (.*)
Variadic: at least 1 and at most 2 arguments.
Returns
string
Category
data