Mecha CMS

Path::long()

Convert relative path into full path.

2.6.0 Static

Path::long(string $value, $ground = true);

Example:

$A = Path::long('foo\bar\baz');
$B = Path::long('\foo\bar\baz');
$C = Path::long("");

Result:

$A = '.\srv\http\foo\bar\baz';
$B = '.\srv\http\foo\bar\baz';
$C = '.\srv\http';