1Archive::Any(3)       User Contributed Perl Documentation      Archive::Any(3)
2
3
4

NAME

6       Archive::Any - Single interface to deal with file archives.
7

VERSION

9       version 0.0946
10

SYNOPSIS

12           use Archive::Any;
13
14           my $archive = Archive::Any->new( 'archive_file.zip' );
15
16           my @files = $archive->files;
17
18           $archive->extract;
19
20           my $type = $archive->type;
21
22           $archive->is_impolite;
23           $archive->is_naughty;
24

DESCRIPTION

26       This module is a single interface for manipulating different archive
27       formats.  Tarballs, zip files, etc.
28
29       new
30               my $archive = Archive::Any->new( $archive_file );
31               my $archive_with_type = Archive::Any->new( $archive_file, $type );
32
33           $type is optional.  It lets you force the file type in case
34           Archive::Any can't figure it out.
35
36       extract
37               $archive->extract;
38               $archive->extract( $directory );
39
40           Extracts the files in the archive to the given $directory.  If no
41           $directory is given, it will go into the current working directory.
42
43       files
44               my @file = $archive->files;
45
46           A list of files in the archive.
47
48       mime_type
49               my $mime_type = $archive->mime_type();
50
51           Returns the mime type of the archive.
52
53       is_impolite
54               my $is_impolite = $archive->is_impolite;
55
56           Checks to see if this archive is going to unpack into the current
57           directory rather than create its own.
58
59       is_naughty
60               my $is_naughty = $archive->is_naughty;
61
62           Checks to see if this archive is going to unpack outside the
63           current directory.
64

DEPRECATED

66       type
67               my $type = $archive->type;
68
69           Returns the type of archive.  This method is provided for backwards
70           compatibility in the Tar and Zip plugins and will be going away
71           soon in favor of "mime_type".
72

PLUGINS

74       For detailed information on writing plugins to work with Archive::Any,
75       please see the pod documentation for Archive::Any::Plugin.
76

SEE ALSO

78       Archive::Any::Plugin
79

SUPPORT

81       You can find documentation for this module with the perldoc command.
82
83           perldoc Archive::Any
84
85       You can also look for information at:
86
87       •   MetaCPAN
88
89           <https://metacpan.org/module/Archive::Any>
90
91       •   Issue tracker
92
93           <https://github.com/oalders/archive-any/issues>
94

AUTHORS

96       •   Clint Moore
97
98       •   Michael G Schwern (author emeritus)
99
100       •   Olaf Alders (current maintainer)
101
103       This software is copyright (c) 2016 by Michael G Schwern, Clint Moore,
104       Olaf Alders.
105
106       This is free software; you can redistribute it and/or modify it under
107       the same terms as the Perl 5 programming language system itself.
108
109
110
111perl v5.34.0                      2021-07-22                   Archive::Any(3)
Impressum