Re: [Rhythmbox-devel] Watched Directories

2005/10/20, James Livingston <jrl ids org au>:
> AFAIK there is no way to find out when a file is closed, but we can wait
> until it has stopped changing to do the load. I've made it queue the
> file loads for later, and they won't occur until the file hasn't been
> changed for 5-10 seconds.

I don't know about the fam api, but inotify sure knows about this!

#define IN_CLOSE_WRITE		0x00000008	/* Writtable file was closed */
#define IN_CLOSE_NOWRITE	0x00000010	/* Unwrittable file closed */
/* helper events */

Hope that helps,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]