You are here

function drupal_realpath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/file.inc \drupal_realpath()

Resolves the absolute filepath of a local URI or filepath.

Deprecated

in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::realpath().

Related topics

56 calls to drupal_realpath()
archiver_get_archiver in core/includes/common.inc
Creates the appropriate archiver for the specified file.
ColorTest::_testColor in core/modules/color/src/Tests/ColorTest.php
Tests the Color module functionality using the given theme.
CommentPreviewTest::testCommentPreview in core/modules/comment/src/Tests/CommentPreviewTest.php
Tests comment preview.
ConfigImportUploadTest::testImport in core/modules/config/src/Tests/ConfigImportUploadTest.php
Tests importing configuration.
DirectoryTest::testFileCheckLocalDirectoryHandling in core/modules/system/src/Tests/File/DirectoryTest.php
Test local directory handling functions.

... See full list

File

core/includes/file.inc, line 1044
API for handling file uploads and server file management.

Code

function drupal_realpath($uri) {
  return \Drupal::service('file_system')
    ->realpath($uri);
}