Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Unification of Directories (their contents)

by spx2 (Deacon)
on Aug 07, 2009 at 10:17 UTC ( [id://786733]=note: print w/replies, xml ) Need Help??


in reply to Unification of Directories (their contents)

There is a solution for your problem , however some corners have not been detailed enough. For example , what if there are 2 files , one in D1 and one in D2 , and they don't sit in the same place ( relative to D1 and D2 ) but they have the same content . Would that be considered a duplicate or not ?

If the answer to that question is no then you can use shlomif's nice method for recursive diff of 2 directories found here and tailor that to your needs.

Otherwise , it may be more difficult and you might need to calculate some hashes for all files(in both D1 and D2) and start seeing if the files have been included before in Dd or not.

  • Comment on Re: Unification of Directories (their contents)

Log In?
Username:
Password:

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

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

    No recent polls found