Directory diff program - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 08-08-2005, 12:12 PM   #1 (permalink)
Monster Techie
 
Chankama's Avatar
 
Join Date: Jan 2005
Location: Canada
Posts: 1,523
Default Directory diff program

Hey fellas. Anyone know of a good FREE program that does diffs of whole directories?

Even better would be a program that takes a hash (SHA-1/MD5) of the CONTENTS of a directory and gives me a single # to archive.

__________________

Chankama is offline  
Old 08-08-2005, 12:53 PM   #2 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

Youu can do it in Perl. I think I already have one that does, but I have to find it.
What is it excatly that you are going for?
__________________

Inaris is offline  
Old 08-08-2005, 12:58 PM   #3 (permalink)
Monster Techie
 
Chankama's Avatar
 
Join Date: Jan 2005
Location: Canada
Posts: 1,523
Default

Checking the contents of 2 CDs .. Unfortunately, most programs I see only takes hashes/CRCs of single files. It'll be nice to find one that does it recursively on all the files in the directory/subdirectories.

I have one, but the stupid thing tries to save the hash digest on the source directory of the CD .. Which is read-only. It does this b/c you are supposed to compare a hard drive folder to a CD folder with that program .. Bastards didn't think that anyone would want to compare CD to CD. No option to change directories.
Chankama is offline  
Old 08-08-2005, 01:17 PM   #4 (permalink)
Monster Techie
 
Chankama's Avatar
 
Join Date: Jan 2005
Location: Canada
Posts: 1,523
Default

Screw this. I am going to write my own program . The amount of time I spent search for it, I could've half finished the darn thing by now
Chankama is offline  
Old 08-08-2005, 01:57 PM   #5 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

well, the program I thought I had, I can't use cause I can't find the source... Need to look at server restore points...
anyway, it's pretty simple to write up a perl script to do this. There is a function called "stat" which returns an array of data about the file. You can use that to build a hash for eash file, and then contain that hash in a hash of the directorys....

if you want help, let me know...

Good luck
Inaris is offline  
Old 08-08-2005, 08:21 PM   #6 (permalink)
Monster Techie
 
Chankama's Avatar
 
Join Date: Jan 2005
Location: Canada
Posts: 1,523
Default

Thx, but I'll be doing it in C++. It'll be faster execution. For a few files it wouldn't matter, but for a large number of files in the mega/giga Bytes, it would make a difference
__________________

Chankama is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.