AppserverIo\Appserver\Core\Api\AbstractService::makePathAbsolute PHP Method

makePathAbsolute() public method

Makes the path an absolute path or returns null if passed path is empty.
public makePathAbsolute ( string $path = '' ) : string
$path string A path to absolute
return string The absolute path
    public function makePathAbsolute($path = '')
    {
        if (empty($path) === false) {
            return DIRECTORY_SEPARATOR . trim(DirectoryKeys::realpath($path), DIRECTORY_SEPARATOR);
        }
    }