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.24 2009/09/21 11:15:36 grubba Exp $ + // $Id: basic.pike,v 1.25 2009/09/21 11:23:17 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. + //! Check whether a path is monitored or not.   //!   //! @param path -  + //! Path to check. + //! + //! @returns + //! Returns @expr{1@} if there is a monitor on @[path], + //! and @expr{0@} (zero) otherwise. + //! + //! @seealso + //! @[monitor()], @[release()]   int(0..1) is_monitored(string path)   {    return !!monitors[canonic_path(path)];   }      //! Check a single @[Monitor] for changes.   //!   //! @param m   //! @[Monitor] to check.   //!