cmds/dir-monitor.cc
void DirMonitor::HandleDeleteSelf(int wd)
{
  cout << "IN_DELETE_SELF triggered for wd " << wd << endl;
  string path = GetDirPath(wd);
  if (path.empty()) return;
  RemovePair(path, wd);
  wds_[wd].clear();
  RemoveFromParentList(path, wd);
}
// Handler for the IN_DELETE_SELF inotify event:
// Watched file/directory was itself deleted.
Handler for the IN_DELETE_SELF inotify event:
Watched file/directory was itself deleted.
Handler for the IN_DELETE_SELF inotify event : Watched file / directory was itself deleted .
void DirMonitor::HandleDeleteSelf(int wd)
{
  cout << "IN_DELETE_SELF triggered for wd " << wd << endl;
  string path = GetDirPath(wd);
  if (path.empty()) return;
  RemovePair(path, wd);
  wds_[wd].clear();
  RemoveFromParentList(path, wd);
}
void DirMonitor :: HandleDeleteSelf ( int wd ) { cout << " " << wd << endl ; string path = GetDirPath ( wd ) ; if ( path . empty ( ) ) return ; RemovePair ( path , wd ) ; wds_ [ wd ] . clear ( ) ; RemoveFromParentList ( path , wd ) ; }
Handler for the IN_DELETE_SELF inotify event:
Watched file/directory was itself deleted.
Handler for the IN_DELETE_SELF inotify event : Watched file / directory was itself deleted .