Branch: Tag:

2012-07-04

2012-07-04 12:24:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Call stable_data_change() in more cases.

Files that were newer than stable_time at monitor initialization time
were never signaled as stable.

340:    //! path is checked (and only if it exists).    protected void file_exists(string path, Stdio.Stat st)    { +  int t = time(1);    call_callback(global::file_exists, path, st); -  +  if (st->mtime + (stable_time || global::stable_time) >= t) { +  // Not stable yet! We guess that the mtime is a +  // fair indication of when the file last changed. +  last_change = st->mtime;    } -  +  }       //! File creation callback.    //!