Skip to main content
17-Peridot
January 16, 2022
Question

How to list the files in all the subfolders of a SystemRepository

  • January 16, 2022
  • 1 reply
  • 879 views

How to list the files in all the subfolders of a SystemRepository in a given directory.

Example path:

DCS001/R1/Device/Pressure/Pressure1.txt, Pressure2.txt, Pressure3.txt DCS001/R1/Device/Temperature/Temperature1.txt, Temperature2.txt, Temperature3.txt

 

We need a RestAPI/extension should have the following parameters:

Input file name: /SystemRepository/DCS001

Output: Pressure1.txt, Pressure2.txt, Pressure3.txt,Temperature1.txt, Temperature2.txt, Temperature3.txt

 

Kindly let us know the solution to achieve this usecase!

1 reply

16-Pearl
January 18, 2022

@AP_9587236 

 

There are some OOTB services which you can use to list the files\directories in a repository, refer below screenshot,

Services are explained here 

SachinSharma_0-1642477556077.png

 

Regards,

Sachin Sharma