in reply to Re^2: (OT) indexing pdf archive content in a multiuser environment- how do i know when the content changed?
in thread (OT) indexing pdf archive content in a multiuser environment- how do i know when the content changed?

The only time the mtime AND ctime will be the same but the contents has changed is if the file has changed within the same time (the same second, or whatever is the resolution the file system uses) as the last check. You can safely ignore anything that hasn't changed for 2 checks.

update: slightly stronger wording: ctime AND mtime

  • Comment on Re^3: (OT) indexing pdf archive content in a multiuser environment- how do i know when the content changed?

Replies are listed 'Best First'.
Re^4: (OT) indexing pdf archive content in a multiuser environment- how do i know when the content changed?
by jdporter (Paladin) on May 26, 2007 at 01:50 UTC

    Except that it's possible for a user to intentially subvert a scheme based on such checks by using touch.