For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2006 > add files to zip without source path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author add files to zip without source path
mano

2006-01-23, 6:56 pm

Is it possible to add files using addTreeMatching without adding a
source file path in the result zip?
I use;
$zip->addTreeMatching('.', '.', '=A8*\.xml'), which adds all xml files
in the library, but with the source path as ./, which I don't want.

I also use $zip->{'zipSend'}->addFile($fileName.".txt") which doesn't
add any source path to the zip. But it can not be used for adding files
using pattern?

Advise highly appreciated.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com