Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: $zip->addDirectory isn't doing anything.

by starX (Chaplain)
on Jun 21, 2007 at 21:04 UTC ( [id://622683]=note: print w/replies, xml ) Need Help??


in reply to $zip->addDirectory isn't doing anything.

First, you're really going to want to put that code between code tags, it makes it easier to read and is good practice, etc.

Second, Have you tried checking the return value of addDirectory()? According to what I understand from the description, it should be returning the new member directory. Also, have you tried putting that part of your operation in an eval block? If so, what kind of error do you get back? maybe something as simple as modifying your error handling above (die "Cannot addDirectory to zip $!" unless $zip->addDirectory("dir1");) might give you some clues.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-19 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found