Title: Archive::Zip -> How do I create an archive without directories?

I have a script to zip the contents of a specific directory.  What switch do I use when to NOT embed the member directory in the archive?  I've looked just about everywhere, with no luck.  Or maybe, I've been looking at it the whole time and not understood what it meant.  Any help would be greatly appreciated. See below for the relevant sections of my script..

Jeff

---------------------------------

        my @files = glob($uploaddir."*.CSV");
        my $zip = Archive::Zip->new();
        my $member = $zip->addDirectory($uploaddir);
               
        $n=0;
       
        foreach(@files)
        {
                #$fmember = substr(@files[$n],-11,11);
                $member = $zip->addFile(@files[$n]);
                $n=$n + 1;
        }

Reply via email to