lib/Pico.php
public function getAbsolutePath($path)
    {
        if (DIRECTORY_SEPARATOR === '\\') {
            if (preg_match('/^(?>[a-zA-Z]:\\\\|\\\\\\\\)/', $path) !== 1) {
                $path = $this->getRootDir() . $path;
            }
        } else {
            if ($path[0] !== '/') {
                $path = $this->getRootDir() . $path;
            }
        }
        return rtrim($path, '/\\') . '/';
    }
public function getAbsolutePath($path)
    {
        if (DIRECTORY_SEPARATOR === '\\') {
            if (preg_match('/^(?>[a-zA-Z]:\\\\|\\\\\\\\)/', $path) !== 1) {
                $path = $this->getRootDir() . $path;
            }
        } else {
            if ($path[0] !== '/') {
                $path = $this->getRootDir() . $path;
            }
        }
        return rtrim($path, '/\\') . '/';
    }
public function getAbsolutePath ( $ path ) { if ( DIRECTORY_SEPARATOR === '\\' ) { if ( preg_match ( '/^(?>[a-zA-Z]:\\\\|\\\\\\\\)/' , $ path ) !== 1 ) { $ path = $ this -> getRootDir ( ) . $ path ; } } else { if ( $ path [ 0 ] !== '/' ) { $ path = $ this -> getRootDir ( ) . $ path ; } } return rtrim ( $ path , '/\\' ) . '/' ; }
Makes a relative path absolute to Pico's root dir

This method also guarantees a trailing slash.

@param string $path relative or absolute path

@return string absolute path
Makes a relative path absolute to Pico s root dir