Skip to main content
Skip table of contents

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

1

The adapter operation was executed successfully.

-1

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

pathResources/MyFolder
nameFilter*.pdf

Output

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

JavaScript errors detected

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

If this problem persists, please contact our support.