• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Efficient comparing of two directories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Efficient comparing of two directories
      • From: Murat Konar <email@hidden>
References: 
 >Efficient comparing of two directories (From: "Alan Smith" <email@hidden>)
 >Re: Efficient comparing of two directories (From: John Stiles <email@hidden>)
 >Re: Re: Efficient comparing of two directories (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Efficient comparing of two directories
  • Next by Date: Re: Efficient comparing of two directories
  • Previous by thread: Re: Efficient comparing of two directories
  • Next by thread: Re: Efficient comparing of two directories
  • Index(es):
    • Date
    • Thread