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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1:   //   // Basic filesystem monitor.   // - // $Id: basic.pike,v 1.33 2010/01/28 15:15:01 grubba Exp $ + // $Id: basic.pike,v 1.34 2010/02/01 14:36:18 grubba Exp $   //   // 2009-07-09 Henrik Grubbström   //      //! Basic filesystem monitor.   //!   //! This module is intended to be used for incremental scanning of   //! a filesystem.      //! The default maximum number of seconds between checks of directories
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:534:    max_dir_check_interval,    file_interval_factor,    stable_time);    check_monitor(monitors[file]);    } else {    file_created(file, file_stat(file, 1));    }    }    }    return 1; +  } else { +  return 0;    }    if ((st->mtime != old_st->mtime) || (st->ctime != old_st->ctime) ||    (st->size != old_st->size)) {    last_change = time(1);    if (status_change(old_st, st, orig_flags)) return 1;    }    if ((flags & MF_RECURSE) && (st->isdir)) {    // Check the files in the directory.    foreach(files, string file) {    file = canonic_path(Stdio.append_path(path, file));