Re: [Interest] Watching files two ways
Am Mon, 24 Mar 2014 12:47:36 +0100 schrieb Sensei sense...@gmail.com: Right now I can detect if a file changes, and it's ok. However, can I track if a file *comes back*? For instance, if I rename a watched file a.txt and rename it to b.txt, I get the slot running. Can I detect if the b.txt gets renamed back to a.txt? i haven't tried, but perhaps watching the parent directory itself will help. -- /* * F.S. Fitzgerald to Hemingway: *Ernest, the rich are different from us. * Hemingway: *Yes. They have more money. */ signature.asc Description: PGP signature ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Watching files two ways
On 3/24/14, 2:50pm, alexander golks wrote: Right now I can detect if a file changes, and it's ok. However, can I track if a file *comes back*? For instance, if I rename a watched file a.txt and rename it to b.txt, I get the slot running. Can I detect if the b.txt gets renamed back to a.txt? i haven't tried, but perhaps watching the parent directory itself will help. Yes, it does the trick. It's trickier than I've hoped because I have to search for the changed file in the directory, but I can live with that. Thanks! ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest