private function doCleanup($unchecked)
    {
        $tracker = $this->tracker;
        /* @var \PhpGuard\Listen\Resource\TrackedObject $tracked */
        foreach($unchecked as $id=>$tracked){
            $origin = $tracked->getResource();
            if(!$origin->isExists()){
                $tracker->addChangeSet($tracked,FilesystemEvent::DELETE);
                $tracker->remove($tracked);
            }
            unset($unchecked[$id]);
        }
    }
private function doCleanup($unchecked)
    {
        $tracker = $this->tracker;
        /* @var \PhpGuard\Listen\Resource\TrackedObject $tracked */
        foreach($unchecked as $id=>$tracked){
            $origin = $tracked->getResource();
            if(!$origin->isExists()){
                $tracker->addChangeSet($tracked,FilesystemEvent::DELETE);
                $tracker->remove($tracked);
            }
            unset($unchecked[$id]);
        }
    }
private function doCleanup ( $ unchecked ) { $ tracker = $ this -> tracker ; /* @var \PhpGuard\Listen\Resource\TrackedObject $tracked */ foreach ( $ unchecked as $ id => $ tracked ) { $ origin = $ tracked -> getResource ( ) ; if ( ! $ origin -> isExists ( ) ) { $ tracker -> addChangeSet ( $ tracked , FilesystemEvent :: DELETE ) ; $ tracker -> remove ( $ tracked ) ; } unset ( $ unchecked [ $ id ] ) ; } }
Track any undetected changes
such as recursive directory delete
Track any undetected changes such as recursive directory delete