Futilities/v0.6/clade/Sys/IO/Store/Spider/@fx/OnWantedFolder/@removed

From WoozleCodes
Jump to navigation Jump to search
Removed Code

Commented out on 2026-05-06 ("old/incomplete version"):

#
        $ol = $oPair->OLinkA;
        // log entering (checking) the folder
        $this->LogSourceFolder($ol);

        // Create a file-node object for the filespec:
        #$ofDir = FNodeAdmin::FromSpec($of->QSPath()->GetIt());
        // Get directory listing:
        $on = $ol->ToNode();
        $oaDir = $on->InOut()->ContentArray();

        if (count($oaDir) > 0) {
            $aList = [];
            $afDir = $oaDir->GetVals();
            foreach ($afDir as $oFi) {
                #$fs = $oFi->Ident()->OSpec()->QSPath()->GetIt();
                #echo $oFi->Ident()->ReflectThis()->Report();
                $fn = $oFi->Ident()->SpecNameExt();
                $aList[$fn] = $oFi;
            }

            // sorting the files makes progress easier to perceive in large folders
            ksort($aList);

            foreach ($aList as $fn => $oNode) {
                if ($oNode->Ident()->IsLink()) {
                    // skip linked folders
                    $this->Logger()->WriteLn("[DEBUG] LINK SKIPPED: $fs");
                } else {
                    // process it recursively
                    $oPairSub = $oPair->SubPair(DIRECTORY_SEPARATOR.$fn);
                    $this->OnPath($oPairSub);
                }
            }
        }