Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

List files API

Suggest edit
Updated on April 5, 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.
Did you find this content helpful? YesNo

100% found this useful

Have a question? Get answers now.

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

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us