get_nodes/3 is an Erlang function exported by "" module. Returns a list of the specified Nodes with their content found within a Repository's target. In a nutshell, this is the function to get the content of a Repository's node (file). The Nodes list should contain tuples in format {NodePath, LocalPath}, as follows: ✓NodePath corresponds with the full path of the node, in order to be found by the selected Target and Repository. ✓LocalPath accepts two string values: "" - when found, the result will be returned as a binary block, or a full path to a local file where the result shall be stored. For better understanding let's comment the code sample below: 1)get_nodes/3 is invoked for Repository "test" by Target -1. In other words, we're requesting VCS to retrieve the most recent versions of the nodes (Repository's files). You could also request a particular version of the nodes searching in a different target by Revision ID or Transaction ID. 2)get_nodes/3 is invoked with a list of two node where the content of "/trunk/file_1.bin" shall be saved as a binary block, and "/trunk/file_2.txt" shall be saved into "/tmp/2.txt". 3)The result confirms that that the content of the requested nodes is extracted properly, and as expected. |
|
|