Re: Efficient comparing of two directories
Re: Efficient comparing of two directories
- Subject: Re: Efficient comparing of two directories
- From: Murat Konar <email@hidden>
- Date: Fri, 15 Dec 2006 11:29:39 -0800
Yes, I think what you'd do is wait for a kqueue notification that one
of your directories' contents had changed then fire off an rsync
operation. Of course you want to take care that change notifications
to the rsync operation are ignored.
_murat
On Dec 15, 2006, at 11:07 AM, Alan Smith wrote:
So I would put a call to rsync in an endless loop syncing the files
every iteration of the loop? Wouldn't that be pretty inefficient?
It would be much better to know when a file/directory changes in the
directory and then sync them. I want the app to "hang out" until the
directory it is watching changes, then sync them. That is the way I
would prefer it but if that isn't possible I'll have to go another
route.
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:
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