function Platform::realpath
Infallible realpath version that falls back on the given $path if realpath is not working
7 calls to Platform::realpath()
- Filesystem::junction in vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php - Creates an NTFS junction.
- Filesystem::removeDirectory in vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php - Recursively remove a directory
- Filesystem::removeDirectoryAsync in vendor/
composer/ composer/ src/ Composer/ Util/ Filesystem.php - Recursively remove a directory asynchronously
- FossilDownloader::doInstall in vendor/
composer/ composer/ src/ Composer/ Downloader/ FossilDownloader.php - @inheritDoc
- FossilDownloader::doUpdate in vendor/
composer/ composer/ src/ Composer/ Downloader/ FossilDownloader.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Platform.php, line 60
Class
- Platform
- Platform helper for uniform platform-specific tests.
Namespace
Composer\UtilCode
public static function realpath(string $path) : string {
$realPath = realpath($path);
if ($realPath === false) {
return $path;
}
return $realPath;
}