Ansgar Burchardt > Debian-Snapshot-0.003 > Debian::Snapshot::File

Download:
Debian-Snapshot-0.003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.003   Source  

NAME ^

Debian::Snapshot::File - information about a file

VERSION ^

version 0.003

ATTRIBUTES ^

hash

The hash of this file.

METHODS ^

archive($archive_name)

Check if this file belongs to the archive $archive_name which can either be a string or a regular expression.

download(%params)

Download the file from the snapshot service.

archive_name

(Optional.) Name of the archive used when looking for the filename.

directory

The name of the directory where the file should be stored.

filename

The filename to use. If this option is not specified the method filename will be used to retrieve the filename.

overwrite

If true downloading will overwrite existing files if their hash differs from the expected value. Defaults to false.

At least one of directory and filename must be given.

filename($archive_name?, $constraint?)

Return the filename(s) of this file in the archive $archive_name (which might be a string or a regular expression). Will die if there is no known filename or several filenames were want and the method is called in scalar context.

If the optional parameter $constraint is specified the filename must either start with this string followed by an underscore or match this regular expression.

SEE ALSO ^

Debian::Snapshot

AUTHOR ^

  Ansgar Burchardt <ansgar@43-1.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2010 by Ansgar Burchardt <ansgar@43-1.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: