How do I get the list of repository files (not folders) of the component programmatically?
![]() I need to get all files that are part of component. Incase the component is having multiple folders, the code needs to iteratre through all folders and it needs to give only file items. |
One answer
![]()
I notice that a similar question has been asked before. It seems to show how to iterate over folders to obtain the file items. Does this help?
Comments Hi Thanks for your reply. I have tried that solution. In my case I have multiple folders in my component(Folders inside folders I am having). With that solution I need to iterate multiple times. Example, I will get one child folder, that will be having one file and 2 folders, again i need to get into that folders and iterate. It will keep on go like this. So I am looking for some other solution. When you say you wish to get the files, do you want to download them? There is an example here which uses the loadDirectory() method.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.