Ferreteria/v0.6/clade/Sys/Narcissa/co/Reflect/@code/@removed
Jump to navigation
Jump to search
|
Removed Code
|
#
// 2025-03-16 old version that only knows one path
// TODO 2024-09-12: What happens if there's no file because it's a PHP native function?
$oPath = PathClass::FromSpec(StartupObject::Me()->FerretCodePath());
$fsRel = $oPath->FigureRelative($fsAbs);
$ftFile = $oScrn->FaintIt("[F]").$oScrn->BoldIt($fsRel);
// replaced by SpaceAdmin::FormatFileSpec()
$oSpace = SpaceAdmin::FindFileSpec($fsAbs);
$oPath = PathClass::FromSpec($oSpace->Folder());
$fsRel = $oPath->FigureRelative($fsAbs);
if ($oSpace->WasFound()) {
$sSlug = $oSpace->Slug();
$ftSlug = $oScrn->BlueIt($sSlug);
$ftPfx = $oScrn->FaintIt("[$ftSlug]");
} else {
$ftPfx = '';
}
$ftFile = $ftPfx . $oScrn->BoldIt($fsRel);