Moving open files
Derek Broughton
news at pointerstop.ca
Tue Jul 8 16:27:06 UTC 2008
Marcin ‘Qrczak’ Kowalczyk wrote:
> 2008/7/8 Derek Broughton <news at pointerstop.ca>:
>
>> There's no possible way for OO or _any_ other program to know what
>> somebody has done with a file outside that program,
>
>> The best an application can do is
>> compare the original file (or a checksum of it) to the current file
>> before writing to it, and warn the user if it has been changed.
>
> There is no need to compute a checksum; comparing the last modified
> time yields the same result in practice, and is cheaper.
I suppose you're right. Even if another program saved the file without
modification, it's worth knowing.
--
derek
More information about the ubuntu-users
mailing list