Re: [RFC] Simple file monitoring API for GLib



On Tue, 2006-05-09 at 13:06 -0400, Joe Shaw wrote:
> Hi,
> 
> On Mon, 2006-05-08 at 22:49 +0100, Emmanuele Bassi wrote:
> >   typedef enum {
> >     G_FILE_CREATED_EVENT,
> >     G_FILE_CHANGED_EVENT,
> >     G_FILE_REMOVED_EVENT,
> >     G_FILE_UNKNOWN_EVENT
> >   } GFileEvent;
> 
> Would G_FILE_CHANGED_EVENT be fired on file attribute change (like
> chmod, chown, or an extended attribute), or only on file content change?

The default implementation fires it when the st_mtime field of the stat
struct for the file is updated.

Other implementations might decide to merge the content+metadata cases.

If someone needs finer grained resolution, then gnome-vfs is the answer.

Ciao,
 Emmanuele.

-- 
Emmanuele Bassi - <ebassi gmail com>
Log: http://log.emmanuelebassi.net




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