• 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: 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


  • Follow-Ups:
    • Re: Efficient comparing of two directories
      • From: Scott Ribe <email@hidden>
    • Re: Re: Efficient comparing of two directories
      • From: "Alan Smith" <email@hidden>
    • Re: Efficient comparing of two directories
      • From: Jeff Koftinoff <email@hidden>
References: 
 >Efficient comparing of two directories (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: Providing AppleScript support for users in a Core Data app
  • Next by Date: Re: Problem when overriding new Apple methods with my categories, what is the best solution?
  • Previous by thread: Efficient comparing of two directories
  • Next by thread: Re: Efficient comparing of two directories
  • Index(es):
    • Date
    • Thread