Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | File Folder | Summary of Elements in this Folder | pub.file:listFiles
 
pub.file:listFiles
WmPublic. List all the files in a specified directory.
The pub.file:listFiles service does not list subdirectories or recursively list subdirectory contents.
Input Parameters
directory
String[ ] Name of the directory that is to be queried.
filter
String Optional. Filter string for the file list (for example, *.java or EDI*.tx*).
Output Parameters
fileList
String Names of the files in the directory specified in the directory parameter. Only the file names are returned; not the full path name.
filel]List does not list subdirectories or recursively list subdirectory content.
numFiles
String Number of files in the specified directory.
Usage Notes
For security reasons, the pub.file:listFiles service checks the value of the directory parameter against the list of allowedReadPaths values specified in the fileAccessControl.cnf file. If the specified directory is not on the allowed list, the service throws an exception. For information about configuring the fileAccessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.