IO-Archive
NAME
IO::Archive - Adds libarchive capabilities to IO::Path objects
SYNOPSIS
# Get a list of the files in the archive
my @files = "test-archive.tgz".IO.arch-list;
# Extract a specific file to a destination
"test-archive.tgz".IO.arch-extract( @files[2], $dest );
# extract the contents of a file in the archive to a string
my Str $str-buf = "test-archive.tgz".IO.arch-extract( @files[2] );
# Extract all the files from the archive to a given destination
"test-archive.tgz".IO.arch-extract-all( $dest );
# Create an archive
"new-archive.tgz".IO.arch-create( @file-paths );
# Add or update a file to an archive
"new-archive.tgz".IO.arch-insert( $file );
DESCRIPTION
IO::Archive adds archive methods to the IO::Path class to create and extract from archive files like tgz, zip, bzip and any other archive that is handled by libarchive.
AUTHOR
Scott Sotka [email protected]
COPYRIGHT AND LICENSE
Copyright 2024 Scott Sotka
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.