'];
        foreach ($files as $file) {
            $fullPath = $currentPath . DIRECTORY_SEPARATOR . $file;
            $isDir = is_dir($fullPath);
            $safeFile = $file;
            $safePath = $fullPath;
            $permissions = getPermissions($fullPath);
            $fileSize = $isDir ? 
            '
DIR' : 
            formatFileSize(filesize($fullPath));
            $html[] = sprintf(
                '
',
                $isDir ? 'dir' : '',
                $isDir ? "
{$safeFile}" : "
{$safeFile}" ,
                $fileSize,
                $permissions);}
        $html[] = '
';
                foreach ($lines as $line) {
                    $html .= sprintf(
                        '%s%s
',
                        str_pad($lineNumber++, 3, ' ', STR_PAD_LEFT),
                        htmlspecialchars($line));}
                $html .= '