G
Geoff Cox
Hello,
The following code creates zip files, each 22 kb in size, but the doc
which should be there isn't there ...any ideas why?
I can get code to work where I define the file to be zipped and the
name of the zip file but trying to go through the whole folder using
File::Find is not working ...
Cheers
Geoff
use warnings;
use strict;
use File::Find;
use Archive::Zip;
my $dir = 'd:/a-keep8/perl/test';
find ( sub {
my $name = $_;
print ("$name \n");
my $zip = new Archive::Zip;
$zip->writeToFileNamed($name . ".zip");
}, $dir);
The following code creates zip files, each 22 kb in size, but the doc
which should be there isn't there ...any ideas why?
I can get code to work where I define the file to be zipped and the
name of the zip file but trying to go through the whole folder using
File::Find is not working ...
Cheers
Geoff
use warnings;
use strict;
use File::Find;
use Archive::Zip;
my $dir = 'd:/a-keep8/perl/test';
find ( sub {
my $name = $_;
print ("$name \n");
my $zip = new Archive::Zip;
$zip->writeToFileNamed($name . ".zip");
}, $dir);