NAME

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

VERSION

version 0.001

ATTRIBUTES

hash

The hash of this file.

METHODS

archive($archive_name)

Check if this file belongs to the archive $archive_name.

download(%params)

Download the file from the snapshot service.

archive_name

Name of the archive used when looking for the filename. Defaults to "debian".

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.

At least one of directory and filename must be given.

filename($archive_name)

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

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.