$perms = substr(sprintf('%o', $info->getPerms()), -4); $owner = $info->getOwner(); $group = $info->getGroup(); $type = $info->getType(); $size = $info->getSize(); $scanner = new Scanner($o2s, $eol, $htmlMode, $scannerOptions); $scanner->scanFile("all", $patternData, $stringData); if (count($scanner->found)) { foreach ($scanner->found as $l) { $found .= $l; } } else { $found = ''; } //make human readable size $size = $scanner->size_readable($size); } } else { $ainfo = "The file/folder {$bS}{$o2s}{$bE} does not exist"; } //translate . to path if o2s eq . if ($o2s == '.') { $o2s = __DIR__; } $line_len = strlen($o2s) + 6; //get the line lenght in chars plus 4 chars for input and 2 for spaces for correct graphics in cli mode if ($line_len < 40) { $line_len = 40; } //make sure is 40 chars long at least //show results