<p></p>
<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, 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>

<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-625142755">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ23MKROWB3YQDHMM43RQJ6C5ANCNFSM4M3C37ZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYIO7KWP6NBZIE3WJTRQJ6C5A5CNFSM4M3C37Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEVBOXYY.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-625142755",
"url": "https://github.com/geany/geany/issues/2494#issuecomment-625142755",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>