CTK::Arc - Archives working
Version 1.00
$Revision: 69 $
# External extracting $c->fextract( -in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (archives) -out => CTK::catfile($CTK::DATADIR,'out'), # Destination directory (files) -method => 'ext', -list => qr/rar/, # Source mask (regular expression, filename or ArrayRef of files) -arcdef => $config->{arc}, # Archive attributes (Hashref) ); # Internal extracting $c->fextract( -in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (archives) -out => CTK::catfile($CTK::DATADIR,'out'), # Destination directory (files) -method => 'zip', # Zip archive -list => qr/zip/, # Source mask (regular expression, filename or ArrayRef of files) -arcdef => $config->{arc}, # Archive attributes (Hashref) ); # External files compressing $c->fcompress( -in => CTK::catfile($CTK::DATADIR,'in'), # Source directory (files) -out => CTK::catfile($CTK::DATADIR,'out','ttt.rar'), # Archive name (filename) -list => qr//, # Source mask (regular expression, filename or ArrayRef of files) -arcdef => $config->{arc}, # Archive attributes (Hashref) );
Sample of $config->{arc} records:
ARC => { tgz => { "type" => "tar", # name "ext" => "tgz", # extension "create" => "tar -zcpf [FILE] [LIST]", # create command "extract" => "tar -zxpf [FILE] [DIRDST]", # extract command "exclude" => "--exclude-from ", "list" => "tar -ztf [FILE]", "nocompress" => "tar -cpf [FILE]" }, ... }
Path and filename
Filename only
Source directory. Path only
See DIRSRC
Destination directory. Path only
See DIRDST
Reserved
Serz Minus (Lepenkov Sergey) http://serzik.ru <minus@mail333.com>
Copyright (C) 1998-2012 D&D Corporation. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms and conditions as Perl itself.
This program is distributed under the GNU LGPL v3 (GNU Lesser General Public License version 3).
See LICENSE file
LICENSE
To install CTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CTK
CPAN shell
perl -MCPAN -e shell install CTK
For more information on module installation, please visit the detailed CPAN module installation guide.