Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: $zip->addTree(...) isn't found.

by halley (Prior)
on Jun 21, 2007 at 16:44 UTC ( [id://622627]=note: print w/replies, xml ) Need Help??


in reply to $zip->addTree(...) isn't found.

A brief examination of the documentation shows addDirectory() but no addTree(). You can get documentation by looking at Archive::Zip or typing on your own command line:
perldoc Archive::Zip

Update: After checking the CPAN docs, newer versions of Archive::Zip do merge in the ::Tree functions. Older builds (such as what I consulted earlier) do not have these methods. Reading your perldoc will generally match the version you're using, so I recommend it.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^2: $zip->addTree(...) isn't found.
by heigold1 (Acolyte) on Jun 21, 2007 at 17:54 UTC
    Hi, thanks so much for your response.

    It is greatly appreciated.

    You know, the addDirectory didn't do anything.

    It didn't produce any errors, but it just didn't do anything.

    Would you know why? I'm going to go troubleshoot it now.
      addDirectory( $directoryName [, $fileName ] ) Append a member created from the given directory name. The dir +ectory name does not have to name an existing directory. If the named directory exists, the file modification time and permissions a +re set from the existing directory, otherwise they are set to now and permissive default permissions. $directoryName must be in loca +l file system format. The optional second argument sets the name of t +he archive member (which defaults to $directoryName). If given, i +t must be in Zip (Unix) format. Returns the new member.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-03-19 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found