<p></p>
<blockquote>
<blockquote>
<p>Why not simply checking that the remaining space is greater than the current file size and only allow to save in that case?</p>
</blockquote>
<p>Because that information is not available cheaply, reliably, and portably for all filesystem types and platforms Geany is available on, if a save fails just save somewhere else and see what the problem is, it could be lots of things not just out of space.</p>
</blockquote>
<p>There is no way to think that when exiting an editor after it says there is no more space left on device, that editor will <em>null out</em> your precious file! So expecting that the user will save his data elsewhere before exiting is clearly not the correct way...</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/2494#issuecomment-625275929">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6AKDSP6YVV357PR5TRQK5ZDANCNFSM4M3C37ZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZSVV3SCTTWFU27MFDRQK5ZDA5CNFSM4M3C37Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVCPIGI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2494#issuecomment-625275929",
"url": "https://github.com/geany/geany/issues/2494#issuecomment-625275929",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>