public function getPath($name)
    {
        if ($this->callerNotSelfOrPathsProxy()) {
            Deprecated::method(3.3, 'Use Bolt\Filesystem (recommended) or PathResolver::resolve instead.');
        }

        return $this->getPathObject($name)->string();
    }
public function getPath($name)
    {
        if ($this->callerNotSelfOrPathsProxy()) {
            Deprecated::method(3.3, 'Use Bolt\Filesystem (recommended) or PathResolver::resolve instead.');
        }

        return $this->getPathObject($name)->string();
    }
public function getPath ( $ name ) { if ( $ this -> callerNotSelfOrPathsProxy ( ) ) { Deprecated :: method ( 3.3 , 'Use Bolt\Filesystem (recommended) or PathResolver::resolve instead.' ) ; } return $ this -> getPathObject ( $ name ) -> string ( ) ; }
Gets a path as a string.

Subdirectories are automatically parsed to correct filesystem.

For example:

$bar = getPath('root/foo/bar');

@param string $name Name of path

@throws \InvalidArgumentException If path isn't available

@return string
Gets a path as a string .