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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1002:   //! Release the entire subtree, but only those paths that were   //! added automatically by a recursive monitor.   //! @endint   //!   //! @seealso   //! @[monitor()]   void release(string path, MonitorFlags|void flags)   {    path = canonic_path(path);    Monitor m = m_delete(monitors, path); -  if (m) { +  if (!m) return; +     release_monitor(m); -  } +     if (flags && m->st && m->st->isdir) {    if (!sizeof(path) || path[-1] != '/') {    path += "/";    }    foreach(monitors; string mpath; m) {    if (has_prefix(mpath, path)) {    m->check_for_release(flags, flags);    }    }    }