<blockquote>
<p>But st_ctime doesn't cover a file having its contents changed</p>
</blockquote>
<p>Dunno, just went by some <a href="https://www.unixtutorial.org/atime-ctime-mtime-in-unix-filesystems" rel="nofollow">random website</a>, I didn't test it.</p>
<blockquote>
<p>Geany is checking for a file having its contents changed, not the file itself being replaced.</p>
</blockquote>
<p>It would be useful to detect the metadata changes too. For example if you make a script executable on the command-line, it could notify you so you don't clobber over that.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2133#issuecomment-487514306">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZKSKN4DYQG7XJUCV3PS25UPANCNFSM4HI2SZYQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4J64OBXFROWW4XLGLPS25UPANCNFSM4HI2SZYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #2133: \u003e But st_ctime doesn't cover a file having its contents changed\r\n\r\nDunno, just went by some [random website](https://www.unixtutorial.org/atime-ctime-mtime-in-unix-filesystems), I didn't test it.\r\n\r\n\u003e Geany is checking for a file having its contents changed, not the file itself being replaced.\r\n\r\nIt would be useful to detect the metadata changes too. For example if you make a script executable on the command-line, it could notify you so you don't clobber over that."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2133#issuecomment-487514306"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2133#issuecomment-487514306",
"url": "https://github.com/geany/geany/issues/2133#issuecomment-487514306",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>