Hi,
I've a daemon (obexpushd) that writes some files in a directory. In my Qt application, I listen to changes in this directory thanks to QFileSystemWatcher. Yet, the directoryChanged signal is emitted when obexpushd creates the file, not when it has finished to write it.
So, I've to wait for obexpush to finish writing the file before processing it. What is the best strategy ?
Check the size remains the same for a fixed amount of time ? Call lsof at fixed interval ? Any better solution ?