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

Is there a way to get a count on the the number of files/folders in a component?

Questions was asked today as a way to verify migration

1

0 votes


Accepted answer

Permanent link
Sean,

two ways come to mind:
1. Write a small perl script which in essence executes SCM commandline commands:
first, do: scm login -u <user> -P <password> -r <Server URL> -n jazz
examine the result of
@result = `scm list remotefiles -r jazz --depth - <Stream / Stream Snapshot> <Component>`;
by e.g.
$number_of_lines = @result;
print "$number_of_lines Files / Folders in Component\n";

2. Load the component to disk from a repository workspace
Use OS means of determining total number of files. E.g. on windows open commandline to top directory and issue
>dir *.* /s

If any of this answers your question please mark the answer as accepted.
- Arne
Sean Burke selected this answer as the correct answer

0 votes

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
× 1,201
× 118

Question asked: Oct 25 '13, 7:25 p.m.

Question was seen: 3,914 times

Last updated: Oct 27 '13, 8:42 a.m.

Confirmation Cancel Confirm