• 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: monitoring file modifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monitoring file modifications


  • Subject: Re: monitoring file modifications
  • From: Vince DeMarco <email@hidden>
  • Date: Sat, 8 Dec 2001 12:53:01 -0800

On Friday, December 7, 2001, at 08:41 am, David Feldman wrote:

Does the OS send out any kind of monitorable event when a file is modified on disk?

(I'm still working on fast, effective sync between a desktop and laptop, and the best way would be if each machine could keep a current list of its own modified files. The best way to do that, I think, would be if the sync program could listen for modified files instead of searching the entire directory structure every so often.)


I would instead keep a Md5 hash of each file and not rely on the date at all. if the two machines clocks are not in sync then it will be kind of useless.

You could store the Md5 hash of the original file then you could tell on which machine the file changed. then ask the user which on to keep etc...

(Md5 is part of Openssl etc...)


vince


  • Follow-Ups:
    • Re: monitoring file modifications
      • From: David Feldman <email@hidden>
References: 
 >monitoring file modifications (From: David Feldman <email@hidden>)

  • Prev by Date: Re: NewPtr vs malloc
  • Next by Date: Re: NewPtr vs malloc
  • Previous by thread: Re: monitoring file modifications
  • Next by thread: Re: monitoring file modifications
  • Index(es):
    • Date
    • Thread