Re: Efficient comparing of two directories
Re: Efficient comparing of two directories
- Subject: Re: Efficient comparing of two directories
- From: John Stiles <email@hidden>
- Date: Fri, 15 Dec 2006 10:55:11 -0800
Today is your lucky day.
Just write a wrapper around rsync and you're done.
On Dec 15, 2006, at 10:42 AM, Alan Smith wrote:
Hello everyone,
I want to write a "sync" app but it will have to be very efficient
because it will run constantly keeping the two directories "in sync."
I know this sounds stupid, and I agree, but, it is what my client
wants.
So, what is the best way to do this?
I found a library online that could "monitor" directories and would
notify the program. That would work great if I could find it again.
My other options is to get the content of each directory and compare
them. This would be really slow and wouldn't necessarily catch newer
files in one directory that have the same name in the other.
Any assistance will be greatly appreciated.
Peace, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that religion really is unnecessary, then it
shall evolve."
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden