pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:664:    } else if (st) {    // File created.       last_change = time(1);    file_created(path, st);    if (st->isdir) {    array(string) files = get_dir(path) || ({});    this::files = files;    foreach(files, string file) {    file = canonic_path(Stdio.append_path(path, file)); +  if (filter_file(file)) continue;    if (monitors[file]) {    // There's already a monitor for the file.    // Assume it has already notified about existance.    continue;    }    if (this::flags & MF_RECURSE) {    monitor(file, orig_flags | MF_AUTO | MF_HARD,    max_dir_check_interval,    file_interval_factor,    stable_time);
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1404:   //!   //! @note   //! The return value can not be trusted to return @expr{1@} for all   //! detected changes in recursive mode.   //!   //! @seealso   //! @[check()], @[data_changed()], @[attr_changed()], @[file_created()],   //! @[file_deleted()], @[stable_data_change()]   protected int(0..1) check_monitor(Monitor m, MonitorFlags|void flags)   { -  return m->check(flags); +  return m && m->check(flags);   }      //! Check all monitors for changes.   //!   //! @param ret_stats   //! Optional mapping that will be filled with statistics (see below).   //!   //! All monitored paths will be checked for changes.   //!   //! @note