Module uri: support for URI providers

This module provides support for more URI providers.

Module provides function for: function uri {

Module provides function for: pwiz_fatal "uri called without argument outside init"

Module provides function for: pwiz_array_add uris "$uri"

Module provides function for: declare -a uris

uri_exists uri

uri: URI

returns: 0: URI exists, 1: URI does not exist

Check, whether specified URI exists.

uri_get uri file

uri: URI

file: file name to be downloaded to (in case of empty string, backend will choose one, probably last element of path, if last element of path is empty, too, then "uri_index" is used)

Download specified URI to current directory as file.

uri_list uri uri_list_callback

uri: complete URI

uri_list_callback: callback for found items (can be empty - $pwiz_callback is used instead - probably echo)

Call callback for all available hyperlinks in specified URI.

{uri_list_callback}

uri: URI of found hyperlink

Callback function for uri_list.

uri_list_recursive uri uri_list_callback

uri: complete URI

uri_list_callback: callback for found items (can be empty - $pwiz_callback is used instead - probably echo)

Recursivelly call callback for all available hyperlinks in specified URI.

{uri_list_callback}

uri: URI of found hyperlink

Callback function for uri_list.

{uri}_exists uri provider domain path

uri: complete URI

provider: provider part of URI

domain: domain part of URI

path: path part of URI

returns: 0: URI exists, 1: URI does not exist

Back-end function for URI provider. Check, whether specified URI exists.

{uri}_get uri provider domain path file

uri: complete URI

provider: provider part of URI

domain: domain part of URI

path: path part of URI

file: file name to be downloaded to

Back-end function for URI provider. Download specified URI to current directory as file.

{uri}_list uri provider domain path uri_list_callback

uri: complete URI

provider: provider part of URI

domain: domain part of URI

path: path part of URI

uri_list_callback: callback for found items

Back-end function for URI provider. Call callback for all available hyperlinks in specified URI.

{uri}_recursive_list uri provider domain path uri_list_callback

uri: complete URI

provider: provider part of URI

domain: domain part of URI

path: path part of URI

uri_list_callback: callback for found items

Back-end function for URI provider. Recursivelly call callback for all available hyperlinks in specified URI.