Skip to main content

 –

List files API

Suggest edit Updated on January 29, 2021

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.

Related Content

Did you find this content helpful? YesNo

50% found this useful

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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