Why not simply checking that the remaining space is greater than the current file size and only allow to save in that case?
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.
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 null out your precious file! So expecting that the user will save his data elsewhere before exiting is clearly not the correct way...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.