It's all about the answers!

Ask a question

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


0
1
Sean Burke (3789144247) | asked Oct 25 '13, 7:25 p.m.
edited Oct 25 '13, 7:58 p.m. by Millard Ellingsworth (2.5k12431)
Questions was asked today as a way to verify migration

Accepted answer


permanent link
Arne Bister (2.6k12832) | answered Oct 27 '13, 8:42 a.m.
JAZZ DEVELOPER
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

Your answer


Register or 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.