Hello,
In my experimentations around BeAPI, I stumbled upon what looks like a bug.
The intent is, in a same process, to create files in a directory that has been locked.
So far, the files are created (you can access them and list them), but the Tracker view of the directory isn’t properly updated. Only the last written file may be displayed.
I wrote a small program to narrow down the behaviour.
The Makefile expose a bug
target you can use to automatically launch the example.
Did I miss something? Or is it really a bug of the Tracker?
I didn’t dig in the FS listening features of the BeAPI if any, but if it exists and is used by the tracker, I guess it’s done through BMessage. Maybe only the last added file is present in the list because the BMessage::AddString index stays zero (mistake? compiler optimisation requiring volatile?).
Thanks!