Forum Discussion
LLuna
12 years agoStaff
Hi,
To answer your question, you can find this path using the md5 of the file that you just uploaded. One way to retrieve the md5 from code collaborator is using the review-xml command, with the --xpath //artifact option to just retrieve the uploaded artifacts for the review:
ccollab admin review-xml <review-id> --xpath //artifact
You will get an output like this:
<artifact changelistId="1" changelistScmId="" lines="644" lines-added="11" lines-changed="0" lines-deleted="0" versionId="10">
<path>path/to/file/in/review</path>
<md5sum>21c25ec1efd7fb9f1e24168cdaf55e05</md5sum>
<change-type>M</change-type>
<scmVersion>c7a568c</scmVersion>
<scm config-a="diffs" config-b="scm-system" id="3" type="none"/>
<prev-path>prev/path/to/file/in/review</prev-path>
<prev-md5sum>b100599b9c4aa8e3ecb5ab8e6e514b6e</prev-md5sum>
<prev-change-type>M</prev-change-type>
<prev-scmVersion>a7a0bb6</prev-scmVersion>
<num-comments>0</num-comments>
<num-defects>0</num-defects>
</artifact>
Then you can use the md5sum matching the original file path (in <path>) to locate the file in your file system. You will need to use a command line tool in order to find it (such as find in linux, or dir in Windows), as it might be under several subdirectories.
But, if you really want the file content you can simply use the versionId and call:
ccollab admin wget /data/server?versionid=<version id>
In the example above you can do
ccollab admin wget /data/server?versionid=10
And that should retrieve the contents of that file.
These commands are described here: http://support.smartbear.com/viewarticle/25602/
Let us know if you have additional questions,
Luis Luna
SmartBear Software
Technical Support
To answer your question, you can find this path using the md5 of the file that you just uploaded. One way to retrieve the md5 from code collaborator is using the review-xml command, with the --xpath //artifact option to just retrieve the uploaded artifacts for the review:
ccollab admin review-xml <review-id> --xpath //artifact
You will get an output like this:
<artifact changelistId="1" changelistScmId="" lines="644" lines-added="11" lines-changed="0" lines-deleted="0" versionId="10">
<path>path/to/file/in/review</path>
<md5sum>21c25ec1efd7fb9f1e24168cdaf55e05</md5sum>
<change-type>M</change-type>
<scmVersion>c7a568c</scmVersion>
<scm config-a="diffs" config-b="scm-system" id="3" type="none"/>
<prev-path>prev/path/to/file/in/review</prev-path>
<prev-md5sum>b100599b9c4aa8e3ecb5ab8e6e514b6e</prev-md5sum>
<prev-change-type>M</prev-change-type>
<prev-scmVersion>a7a0bb6</prev-scmVersion>
<num-comments>0</num-comments>
<num-defects>0</num-defects>
</artifact>
Then you can use the md5sum matching the original file path (in <path>) to locate the file in your file system. You will need to use a command line tool in order to find it (such as find in linux, or dir in Windows), as it might be under several subdirectories.
But, if you really want the file content you can simply use the versionId and call:
ccollab admin wget /data/server?versionid=<version id>
In the example above you can do
ccollab admin wget /data/server?versionid=10
And that should retrieve the contents of that file.
These commands are described here: http://support.smartbear.com/viewarticle/25602/
Let us know if you have additional questions,
Luis Luna
SmartBear Software
Technical Support
Related Content
- 5 years ago
- 2 years ago
Recent Discussions
- 27 days ago