Hacker News new | ask | show | jobs
by netnichols 4572 days ago
It's not just that it could be faked, it could be an accident that you modify a file but the file modification date is not changed. For example, say you edit a photo, but later you run a script that sets the file's modification date to the EXIF data in the photo.

So I guess the point is that also including the file size will be one more (fast) data point to help ensure 'accurate' change tracking, without adding the overhead of computing content hashes.

1 comments

I think I will add the file size to the index, since it's really cheap.

Thanks!