Operation: Exists
The Exists operation checks whether the files or folders specified in the path parameter exist. Outputs an XML with metadata as a result.
Status values
| The operation was executed successfully. |
| The file or folder does not exist. |
| The operation failed due to a technical error. |
Examples
The following example shows a sample parameterization of the adapter for the Exists operation to check whether the destination file specified in parameter path exists.
Parameter | Value |
|---|---|
| /file.xml |
Output
If the file exists:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Entry name="file.xml" isDirectory="false">
<LastModified>2022-03-07T12:33:23+01:00</LastModified>
</Entry>
When checking if a folder exists, the attribute isDirectory="true" is set.