Operation: List
The List operation lists names and metadata of files and folders from the folder defined in the path parameter. Outputs an XML with metadata as a result.
| The adapter operation was executed successfully. |
| The folder doesn't exist. |
Examples
The following example shows a sample parameterization of the List operation adapter to list PDF files that are in the folder defined in the path parameter.
Parameters | Value |
|---|---|
path | /MyFolder |
nameFilter |
Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<Entries>
<Entry name="Document v1.pdf" isDirectory="false">
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
<Entry name="Document v2.pdf" isDirectory="false">
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
<Entry name="Document v3.pdf" isDirectory="false">
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
</Entries>
When a folder is listed, the
isDirectory="true" attribute is set.