Group
Extension

Matches 2

File-Unpack2 ( K/KR/KRAIH/File-Unpack2-1.0.tar.gz, KRAIH, 2023; MetaCPAN )
File-Unpack2/Unpack2.pm ( view source; MetaCPAN )
use File::Temp ();		# tempdir() in _run_mime_helper.
use File::Copy ();
use File::Compare ();
use JSON;
use String::ShellQuote;		# used in _prep_configdir 
use IPC::Run;			# implements File::Unpack2::
bzip2
    # ...

    $u->unpack("inputfile.tar.bz2");
    while ($log =~ m{^\s*"(.*?)":}g) # it's JSON.
      {
        print "$1\n"; 	# report all files unpacked
      }

    ...

Most of the known a
0, archive_name_as_dir => 0,
	    follow_file_symlinks => 0, 
	    log_params => {}, log_type => 'JSON');

Creates an unpacker instance. The parameter C<destdir> must be a writable location; all outpu
File-Unpack2 ( K/KR/KRAIH/File-Unpack2-1.0.tar.gz, KRAIH, 2023; MetaCPAN )
File-Unpack2/file_unpack2.pl ( view source; MetaCPAN )
a logfile, where freshly unpacked files are reported.
	When a logfile is specified, its format is JSON; 
	default is STDOUT with format PLAIN.
 
 -l --list-helpers
        Overview of mime-type patter
  Default: skip all symlinks.

}) if $help;

if (defined $opt{logfile})
  {
    $opt{log_type} = 'JSON';
    $opt{logfile} = \*STDOUT if $opt{logfile} eq '-';
  }

$opt{logfile} ||= '/dev/null' if $li
und. (new() opens the logfile, unpack() closese it.)
        $u = File::Unpack2->new(%opt);
        $u->mime_helper_dir(@mime_helper_dirs);
      }
  }

# delete $u->{json};
# die "$0: " . Dumper $u;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.