getPathname(); $parent = dirname($path); $bp = basename($parent); if ($bp == $pharFile) { $first = ""; } else { $first = $bp . '/'; } $lastTwoParts = $first . basename($path); if (hasNoSizeFlag()) { echo $lastTwoParts . PHP_EOL; } else { $size = formatBytes($file->getSize()) . "\t "; echo $size . $lastTwoParts . PHP_EOL; } } } catch (PharException | Exception $e) { echo "Error reading Phar archive: " . $e->getMessage(); }