Closed timrowledge closed 8 years ago
We have a primitiveFileSync in the FilePlugin code so add a call to the prim and a nice method in StandardFileStream to use it. Modify the project writing code to flush, sync and then close. I don't think there is any more agressive way to force it; an axe, maybe?
Fixed in Scratch-tpr-341 ready for next release
See https://www.raspberrypi.org/forums/viewtopic.php?f=77&t=148349
Basically it appears the power sometimes gets pulled a bit ... enthusiastically... in classrooms. Since *nix is convinced it knows best, file buffers are not always flushed after writing, nor even necessarily as part of closing a file, so add call to flush and sync as part of writing the project files.