Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Platform.php

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

... See full list

File

vendor/composer/composer/src/Composer/Util/Platform.php, line 60

Class

Platform
Platform helper for uniform platform-specific tests.

Namespace

Composer\Util

Code

public static function realpath(string $path) : string {
    $realPath = realpath($path);
    if ($realPath === false) {
        return $path;
    }
    return $realPath;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal