05-11-2021, 11:22 AM
A program thats checking the file could see it as empty if it reads it between the time its opened/truncated and then written/closed. This time interval would be really short though, in the sub milliseconds range because there are just a few lines of code doing the file open/write/close. Have a look at function updExtMetaFile() in worker.php. Just assume its last state if you see it as empty.
The file being empty at startup is a bug. It's being created afresh without first checking to see if it already exists. I've added to the TODO list to fix for upcoming 7.3.0 release.
The file being empty at startup is a bug. It's being created afresh without first checking to see if it already exists. I've added to the TODO list to fix for upcoming 7.3.0 release.