Re: [perf-discuss] File event API

2006-11-17 Thread Joe Shaw
Hi, On Fri, 2006-11-17 at 14:13 -0800, Prakash Sangappa wrote: > > To make sure I am understanding correctly, let me step through an > > implementation that gnome-vfs would likely employ. Let's assume I have > > a view on a directory, and I want to watch for various changes to the > > files in th

Re: [perf-discuss] File event API

2006-11-17 Thread Prakash Sangappa
Joe Shaw wrote: Hi, On Thu, 2006-11-16 at 16:03 -0800, Prakash Sangappa wrote: How is file creation handled? It seems like you would need an event analogous to FILE_DELETE here to notice any newly added files. The file creation will result in a FILE_MODIFIED event on the director

Re: [perf-discuss] File event API

2006-11-17 Thread Bart Smaalders
Prakash Sangappa wrote: To activate monitoring(watching) a file, it needs to be registered Upon delivering an event, the file monitor is disabled. It needs to be re-registered again to reactivate the monitor and receive further events. Why is this? Usually apps that monitor a file want

Re: [perf-discuss] File event API

2006-11-17 Thread Joe Shaw
Hi, On Thu, 2006-11-16 at 16:03 -0800, Prakash Sangappa wrote: > > How is file creation handled? It seems like you would need an event > > analogous to FILE_DELETE here to notice any newly added files. > > > The file creation will result in a FILE_MODIFIED event on the directory. So, > the app