Exists
The file.exists function is used to check if a file exists on the
filesystem. This function returns true if a file exists, or false
if the file does not exist.
Syntax
%file.exists(string)
Example 1. Checking if a file exists
if %file.exists("/var/log/radius.log") {
# do things...
}
File access restriction
Files accessed in this function are restricted by the limit files
section in the main
security
configuration. If present in radiusd.conf, only files in the paths
listed can be accessed.