fluffyvoidwarrior has asked for the wisdom of the Perl Monks concerning the following question:
No doubt I'm doing something dumb. Would someone please enlighten me? Thanksmy $zip = Archive::Zip->new(); # add all readable files and directories below . as xyz/* $zip->addTree( '/delme/wibble', 'customer_uploads' ); $zip->addFile( '/delme/wibble.tif', 'wibble.tif' ); $zip->addFile( '/delme/wibble.gif', 'wibble.gif' ); # and write them into a file $zip_return_code = $zip->writeToFileNamed('/delme/final_zipfile.zip +'); if($zip_return_code != 0){ #an error occurred doing the zip $html_string = $html_string . "Error creating zip file . . . $zip_ +return_code $! "; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archive::Zip errors
by polettix (Vicar) on Nov 04, 2005 at 09:12 UTC | |
by fluffyvoidwarrior (Monk) on Nov 04, 2005 at 11:04 UTC | |
by Anonymous Monk on Oct 20, 2011 at 18:50 UTC | |
|
Re: Archive::Zip errors
by Skeeve (Parson) on Nov 04, 2005 at 08:54 UTC | |
|
Re: Archive::Zip errors
by virtualsue (Vicar) on Nov 04, 2005 at 08:01 UTC | |
by fluffyvoidwarrior (Monk) on Nov 04, 2005 at 08:13 UTC | |
by virtualsue (Vicar) on Nov 04, 2005 at 09:25 UTC | |
by fluffyvoidwarrior (Monk) on Nov 04, 2005 at 09:57 UTC | |
by virtualsue (Vicar) on Nov 04, 2005 at 10:39 UTC | |
| |
by pboin (Deacon) on Nov 04, 2005 at 10:48 UTC | |
|