GithubHelp home page GithubHelp logo

archive-any's Introduction

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

VERSION
    version 0.0941

SYNOPSIS
        use Archive::Any;

        my $archive = Archive::Any->new( $archive_file );

        my @files = $archive->files;

        $archive->extract;

        my $type = $archive->type;

        $archive->is_impolite;
        $archive->is_naughty;

DESCRIPTION
    This module is a single interface for manipulating different archive
    formats. Tarballs, zip files, etc.

    new
            my $archive = Archive::Any->new( $archive_file );
            my $archive = Archive::Any->new( $archive_file, $type );

        $type is optional. It lets you force the file type in case
        Archive::Any can't figure it out.

    extract
            $archive->extract;
            $archive->extract( $directory );

        Extracts the files in the archive to the given $directory. If no
        $directory is given, it will go into the current working directory.

    files
            my @file = $archive->files;

        A list of files in the archive.

    mime_type
            my $mime_type = $archive->mime_type();

        Returns the mime type of the archive.

    is_impolite
            my $is_impolite = $archive->is_impolite;

        Checks to see if this archive is going to unpack into the current
        directory rather than create its own.

    is_naughty
            my $is_naughty = $archive->is_naughty;

        Checks to see if this archive is going to unpack outside the current
        directory.

DEPRECATED
    type
            my $type = $archive->type;

        Returns the type of archive. This method is provided for backwards
        compatibility in the Tar and Zip plugins and will be going away soon
        in favor of "mime_type".

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

SEE ALSO
    Archive::Any::Plugin

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc Archive::Any

    You can also look for information at:

    *   MetaCPAN

        <https://metacpan.org/module/Archive::Any>

    *   Issue tracker

        <https://github.com/oalders/archive-any/issues>

AUTHORS
    *   Clint Moore

    *   Michael G Schwern (author emeritus)

    *   Olaf Alders (current maintainer)

COPYRIGHT AND LICENSE
    This software is copyright (c) 2013 by Olaf Alders.

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

archive-any's People

Contributors

book avatar oalders avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.