Hybrid Integration 10.2 | Integrating On-Premises Applications | Integration Server Built-In Services | File Folder | pub.file:checkFileExistence
 
pub.file:checkFileExistence
WmPublic. Checks if a specified file exists, and if the file exists, checks whether the file name represents a file or a directory.
Input Parameters
fileName
String The absolute path name of the file to be checked.
Output Parameters
exists
String Indicates whether the specified fileName exists or not. A value of:
*true indicates that the specified fileName exists.
*false indicates that the specified fileName does not exist.
isDirectory
String Indicates whether the specified fileName is a file or a directory.
*true indicates that the specified fileName is a directory.
*false indicates that the specified fileName is a file.
Usage Notes
For security reasons, the pub.file:checkFileExistence service checks the input fileName parameter against the list of allowedReadPaths values specified in the fileAccessControl.cnf file. If the input fileName is not on the allowed list, Integration Server throws an exception. For information about configuring the fileAccessControl.cnf file, refer to File Access Control Configuration for the pub.file Services.

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release