Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

Table of Contents

...

Example of a command line with the UDMG Client to fetch the files matching the pattern “wince*.png” from the remote partner “rebex” (see 677448954 Tutorial - Creating a PeSIT Partner).

Panel

$ udmg-client transfer add --way receive --partner rebex --login demo --rule rebex_receive_example --info udmg_xfer_wildcard:true --file 'wince*.png'
The transfer of file wince*.png was successfully added with ID 160.

...

Panel

$ curl -i -L 'http://hostname/api/transfers' -H 'Content-Type: application/json' -d '{
        "rule": "rebex_receive_example",
        "partner": "rebex",
        "account": "demo",
        "isSend": false,
        "file": "wince*.png",
        "transferInfo": { "udmg_xfer_wildcard": true}
}'
HTTP/1.1 201 Created
Location: /api/transfers/160
Date: Wed, 01 Mar 2023 13:57:58 GMT
Content-Length: 0

The result is the creation of a transfer record with the wildcard pattern, which executes as follows:

Step 1

Connect to the remote partner.

Step 2

List the files that are matching with the pattern on the remote path.

Step 3

Create a child transfer record for each of the files. The transfer is set to planned status and is independent of the parent request.

Step 4Terminate and keep the list of files and child requests in its transfer info metadata.
Step 5

Additionally, the file size field is set to the number of matched files (and child requests).

Step 6

The child requests are processed independently of the parent request and can be paused, resumed, or canceled on their own.

In this example, the transfer with ID 160 is the parent request, with the wildcard pattern, while 161 and 162 are the children requests for the 2 matching files: 'winceclient.png' and 'winceclientSmall.png'.

...