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 ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1001925]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found