Skip to main content
Skip table of contents

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

1

The operation was executed successfully.

0

The file or folder does not exist.

-1

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

path/file.xml

Output

If the file exists:

XML
<?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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.