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.23 2009/08/11 09:51:14 grubba Exp $ + // $Id: basic.pike,v 1.24 2009/09/21 11:15:36 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:610:    }    foreach(monitors; string mpath; m) {    if (has_prefix(mpath, path) && ((m->flags & flags) == flags)) {    m_delete(monitors, mpath);    release_monitor(m);    }    }    }   }    + //! Check whether a path is monitored. + //! + //! @param path + int(0..1) is_monitored(string path) + { +  return !!monitors[canonic_path(path)]; + } +    //! Check a single @[Monitor] for changes.   //!   //! @param m   //! @[Monitor] to check.   //!   //! @param flags   //! @int   //! @value 0   //! Don't recurse.   //! @value 1