Re: How does mknmz determine if a file is updated?
Earl Hood <[email protected]> Mon, 01 Sep 2003 14:00:34 -0500
| Newsgroups | gmane.comp.search.namazu.user |
|---|---|
| Message-ID | <[email protected]> |
On September 1, 2003 at 21:29, [email protected] wrote: > > How does mknmz determine if a file is updated? Looking at the source, > > it appears it is based solely on mtime. Is this true? > > Yes, you are right. Do you think adding a check for file size changes? Maybe add the ability to check the MD5 sum (or SHA sum) of files. This would be extra overhead, so it should probably be an optional option. I think checking file size changes may be sufficient for most cases and is negligable overhead since the same stat call can be used to check mtime and the file size. --ewh