
| Current Path : /var/www/html/holz-machines/vendor/consolidation/site-alias/src/Util/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/holz-machines/vendor/consolidation/site-alias/src/Util/FsUtils.php |
<?php
namespace Consolidation\SiteAlias\Util;
use Symfony\Component\Filesystem\Filesystem;
class FsUtils
{
/**
* Returns canonicalized absolute pathname.
*
* The difference between this and PHP's realpath() is that this will
* return the original path even if it doesn't exist.
*
* @param string $path
* The path being checked.
*
* @return string
* The canonicalized absolute pathname.
*/
public static function realpath($path)
{
$realpath = realpath($path);
return $realpath ?: $path;
}
}