Skip to main content
17-Peridot
Dec 27, 2021 2:34 PM UTC
Question

how to get all the subfolders and folders from a path i

In system repository, I want all document in all subfolders under a starting folder which is a input. 

The actual path is - C:\ThingworxStorage\repository\SystemRepository\cName\mName\type\dName\sName\DetailedInfoFiles\csvfile.csv. The input is cName. From all subfolders of cName Folder, the restAPI search for files and return the filenames. 

Any useful API is available in SystemRepository?

2 replies

24-Ruby IV
Dec 28, 2021 8:27 AM UTC

 Hi,

 

A similar question was previously - "List all files in a File Repository (TXW 9.1)": https://community.ptc.com/t5/ThingWorx-Developers/List-all-files-in-a-File-Repository-TXW-9-1/td-p/716846 

Translate
Support
Jan 5, 2022 8:38 PM UTC

Hi @AP_9587236.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Translate