jacquesg / p5-Archive-Raw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status: Azure Coverage Status

NAME

Archive::Raw - Perl bindings to the libarchive library

DESCRIPTION

libarchive is a multi-format archive and compression library. This module provides Perl bindings to the libarchive API.

WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).

SYNOPSIS

use Archive::Raw;

# Extract 'archive.tar.gz' to 'out/'
my $reader = Archive::Raw::Reader->new();
$reader->open_filename ('archive.tar.gz');

my $writer = Archive::Raw::DiskWriter->new (
        Archive::Raw->EXTRACT_TIME | Archive::Raw->EXTRACT_PERM |
        Archive::Raw->EXTRACT_ACL | Archive::Raw->EXTRACT_FFLAGS);

my $extractPath = "out";
while (my $entry = $reader->next())
{
        my $filename = $extractPath.'/'.$entry->pathname;
        $entry->pathname ($filename);
        $writer->write ($entry);
}

FUNCTIONS

libarchive_version( )

Get the libarchive version.

DOCUMENTATION

AUTHOR

Jacques Germishuys <jacquesg@striata.com>

LICENSE AND COPYRIGHT

Copyright 2019 Jacques Germishuys.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

About


Languages

Language:Perl 61.0%Language:XS 22.4%Language:C 16.6%