attempt to fix file corruption edge case
We found an edge case where a user's files could be corrupted due to a faulty disk if the fault kicked in at the perfectly inopportune moment. This code attempts to fix that.
As of opening the merge request, I do not have a test in place for this specific edge case, I am writing one now but wanted to get the review started so that we could slip this into v1.3.4
Edited by Christopher Schinnerl