View Full Version : QFileSystemWatcher question

26th March 2011, 14:49
Good Morning, today I'm trying to do something test using QFileSystemWatcher class.
Is It possible to know what file is been deleted programmaticaly in signal directoryChanged? . Can you post me some code example, please? thank you.


26th March 2011, 22:00
I was wondering about same matter, but I couldn't find the solution. I am also very curious does any one how to make that only last file which is copied to the watched directory is sending the signal? Becouse when I copy many files to the watched folder few signal are being emitted. However, I want to do some operation on those files only when all of them are copied to the directory. I figured only one simply but not to handsome solution: I just do "sleep(60)", but this is crapy becouse if files are copied after more then 60 seconds it won't work like it should. Is there any way to do it better?