Folder comparison program

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

I'm seeking a program that would compare the contents of two folders against each other.

Let me try to explain it this way... this is what I'm trying to do.

I have two folders, the folders hold music... on folder has 40 gigs of music and the other folder has 20 gigs of music. Some of the music that one folder has, is already present in another folder. I want these music combined in one folder. Some music are named differently, but still are the same music.

How could I accomplish that without manually going through them and checking them? That would take too long.

Is there such thing? It would be a total life savor.

Sorry, for those run on sentences that might've confused you guys.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

If this is a computer you already have PHP installed on for doing that sort of stuff, you can write a small script that does the following.

Creates a "hash" folder.
Creates a "duplicates" folder.

Goes through the destination folder recursively, runs each file through md5_file(), and creates a new file in the "hash" directory named after the hash returned from md5_file.

Goes through the source directory recursively, running each file through md5_file just like before, except this time you'll be checking for the existence of a file named using the hash returned instead of creating the file.

Any time a hash exists for the file in the source folder, move that file to the "duplicates" folder.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Beyond Compare by Scooter Software.

I swear by it. The standard version is only $30 US and worth every penny. Not only compares folders, but files as well, and is a must have webmaster tool in my opinion.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Awesome! Thanks for that awesome reply ATNO! I am going to try Beyond Compare :D
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

I don't know...joebert's solution appeals to my [url]Tim Allen[/url] side. If the need arose, I think I'd probably have to go with both just for the coding experience. :)

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 57 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.