Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Calculating differences between the contents of a zip and a directory

by Anonymous Monk
on Nov 02, 2012 at 07:04 UTC ( #1001925=note: print w/ replies, xml ) Need Help??


in reply to Calculating differences between the contents of a zip and a directory

Now, I've tried implementing that with a MANIFEST-like file, but is there a more efficient solution?

Yeah, unzip ... and diff -ruN olddir unzippeddir


Comment on Re: Calculating differences between the contents of a zip and a directory
Re^2: Calculating differences between the contents of a zip and a directory
by MilanorTSW (Beadle) on Nov 02, 2012 at 07:49 UTC
    Thanks, but I can't do that without unzipping the file, can I? Also, I would need for the script to transfer platforms, I'll have to use File::DirCompare or something similar instead.

      Thanks, but I can't do that without unzipping the file, can I?

      Not sure, I don't remember details of archive formats.

      Typically archiving programs support listing contents of archives , so if that is faster than unzipping, and sufficiently detailed for your analysis, go for it, Try It To See

      Also, I would need for the script to transfer platforms, I'll have to use File::DirCompare or something similar instead.

      You could do that. You could also install diff on the target machine :) whatever you need

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-07-31 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls