Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 taking refuge in the Monastery: (5)
As of 2015-07-05 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls