Filesystem not updating space quota properly when using an external editor.
fatboychummy opened this issue ยท 1 comments
Minecraft Version
1.16.x
Version
1.97.0
Details
Summary
When using an external editor to delete the contents of a file, the "free space" quota does not update.
Reproduction:
- Make a large file, large enough that it's noticeable when using
fs.getFreeSpace("")
- Open the file in an external editor
- Do not delete the file, instead use ctrl+a to select all the text in the file, hit backspace, then save.
- Call
fs.getFreeSpace("")
, notice the space has not been freed.
Extra information
- When you do this, even if you delete the file afterwards the space is not freed until the server restarts.
fs
/io
writes fail if the system is "full" due to this, even if space is definitely available.