Syntax
string readdir ( string path [, string filter] )
Description
readdir reads the contents of the directory identified by path, and returns the list of files as a string. If you supply a filter, it applies a glob-style filter and only returns those files that match the filter in the string. If you do not supply a fully qualified path, it assumes the path is relative to the path identified by the policyDir setting in the pm.settings file.
Example
#find all *.profile files in the profiles directory and include any found incfiles=readdir("profiles", "*.profile"); incfile_list=split(incfiles); for onefile in incfile_list { include onefile; }