Is there a way to get a count on the the number of files/folders in a component?
Sean Burke (378●9●144●247)
| asked Oct 25 '13, 7:25 p.m.
edited Oct 25 '13, 7:58 p.m. by Millard Ellingsworth (2.5k●1●24●31)
Questions was asked today as a way to verify migration
|
Accepted answer
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
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.