Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
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?

1 vote

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.
http://thescmlounge.blogspot.com/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,580

Question asked: Oct 15 '19, 1:31 a.m.

Question was seen: 1,636 times

Last updated: Oct 15 '19, 3:57 a.m.

Confirmation Cancel Confirm