function vfsStream::path
restores the path from the url
Parameters
string $url vfsStream url to translate into path:
Return value
string
8 calls to vfsStream::path()
- vfsStreamWrapper::dir_opendir in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - opens a directory
- vfsStreamWrapper::mkdir in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - creates a new directory
- vfsStreamWrapper::rename in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - rename from one path to another
- vfsStreamWrapper::rmdir in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - removes a directory
- vfsStreamWrapper::stream_metadata in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - sets metadata like owner, user or permissions
File
-
vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStream.php, line 88
Class
- vfsStream
- Some utility methods for vfsStream.
Namespace
org\bovigo\vfsCode
public static function path($url) {
// remove line feeds and trailing whitespaces and path separators
$path = trim($url, " \t\r\n\x00\v/\\");
$path = substr($path, strlen(self::SCHEME . '://'));
$path = str_replace('\\', '/', $path);
// replace double slashes with single slashes
$path = str_replace('//', '/', $path);
return rawurldecode($path);
}