in reply to UNTAR in Perl
Hope this helpsuse Data::Dumper; unzip_tree($file); print Dumper \@files; sub unzip_tree{ my $zip_file = shift; my $zip = Archive::Zip->new($zip_file); $zip->extractTree( "", "$tmpdir/" ); my @files = grep { -f "$tmpdir/$_"} readdir( UNZIPED ) ; close UNZIPED; @files = map { $_ = "$tmpdir/$_" } @files; return @files; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: UNTAR in Perl
by graff (Chancellor) on May 16, 2007 at 14:41 UTC |