class FsUtils (View source)

Methods

static string
realpath(string $path)

Returns canonicalized absolute pathname.

Details

static string realpath(string $path)

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.

Parameters

string $path

The path being checked.

Return Value

string

The canonicalized absolute pathname.