Operation: ListDirectory
The ListDirectory
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.
Status values
| The adapter operation was executed successfully. |
| The folder doesn't exist. |
Examples
The following example shows a sample parameterization of the adapter for the ListDirectory
operation to list PDF files from the folder defined in the path
parameter.
Parameters | Value |
---|---|
path | Resources/MyFolder |
nameFilter |
Output
<?xml version="1.0" encoding="UTF-8"?>
<Entries>
<Entry isDirectory="false" name="Document v1.pdf">
<CreationDate>2021-06-18T09:40:39.1965Z</CreationDate>
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
<Entry isDirectory="false" name="Document v2.pdf">
<CreationDate>2021-06-18T09:40:07.105917Z</CreationDate>
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
<Entry isDirectory="false" name="Document v3.pdf">
<CreationDate>2021-06-18T09:40:18.941018Z</CreationDate>
<LastModified>2021-06-18T09:20:49.137675Z</LastModified>
</Entry>
</Entries>
When a folder is listed, the attribute isDirectory="true"
is set.