mardi 21 avril 2015

When I get directoryChanged signal from QFileSystemWatecher the file newly added is not completed to read

I want to be notified when a file is added to "/test". So I used QFilesystemWatcher's directoryChanged signal. But when "cp aa.txt /test" I got directoryChanged signal and there when I read aa.txt I had incomplete aa.txt.

In this case how can I know the file is completed to read?

FYI, I can't use fileChanged signal since don't know exact file name.

Aucun commentaire:

Enregistrer un commentaire