Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

List files API

Updated on April 6, 2022

The list files API is a read-only data page, D_pxListFiles. This API lists files and folders in a specific a folder on a repository.

To use this API, define the following parameters:

  • repositoryName – the name of the repository.
  • folderPath – the path, relative to the root path of the repository, to the folder whose contents you want to list.

This API returns the following metadata for files and folders in the directory that you defined:

  • pyName – the short name of the file or folder.
  • pyPath – the complete path to the file or folder.
  • pyIsFolder – a Boolean value that is true if the content is a folder and false if it is a file.
  • pyLength – the size of a file in bytes. This value is not returned for folders.
  • pyLastModifiedTime – the last time that a file or folder was modified.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us