Pinto::Role::UserAgent(3pm)

Pinto::Role::UserAgent3pm

Something that makes network requests

Version

version 0.14

Methods

mirror(RESOURCE => PATH)

Mirrors the resource located at "from" to the file located at PATH, if the RESOURCE is newer than the file at PATH. If the intervening directories do not exist, they will be created for you. Returns a true value if the file has changed, returns false if it has not changed. Throws an exception if anything goes wrong.

The RESOURCE can be either a URI or Path::Class::File object, or a string that represents either of those. The PATH can be a Path::Class::File object or a string that represents one.

mirror_temporary(RESOURCE)

Mirrors RESOURCE to a file in a temporary directory. The file will have the same basename as the RESOURCE. Returns a Path::Class::File that points to the new file. Throws and exception if anything goes wrong. Note the temporary directory and all its contents will be deleted when the process terminates.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Jeffrey Ryan Thalhammer <[email protected]>

From pinto 0.14000-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.