Namazu-users-en(old)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does mknmz determine if a file is updated?
On September 1, 2003 at 21:29, knok@xxxxxxxxxxxxx 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