Futilities/v0.6/clade/Sys/IO/Store/Spider/@fx/OnFolder
Jump to navigation
Jump to search
About
- Rule: we have a valid path to a folder. We need to ask the Matcher if it should be spidered into.
Code
#
protected function OnFolder(FoNodeIface $of) {
$om = $this->GetMatcher();
#$of = $this->GetSpec();
if ($om->IsFolderWanted($of)) {
// YES - so process it
// Tell the Matcher to do any purpose-specific stuff.
$om->HandleFolder($of);
$this->OnWantedFolder($of);
// track this for summary
$this->IncFolders();
} else {
#echo "SKIPPING FOLDER ".$op->GetPath()."\n";
}
}