[Github-comments] [geany/geany] Better check for a file change on disk by also monitoring the file size. (#1175)

Stefan Oberhumer notifications at xxxxx
Sat Aug 13 06:14:37 UTC 2016


> What if the contents change but the size remains the same, will Geany still notify of the change or just silently clobber the file on disk next save?

If the file size and mtime are unchanged, Geany silently clobber the file on disk next save.
I thought about this problem but generating a checksum or comparing the whole file generated performance problems in my tests.
So for now I just added the file size to the change check.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1175#issuecomment-239604961
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160812/af6a2634/attachment.html>


More information about the Github-comments mailing list