src/Finder.php
public function setRoot($root)
	{
		if ( ! $path = realpath($root))
		{
			throw new \Exception('Location does not exist: '.$root);
		}

		$this->root = $path;
	}
public function setRoot($root)
	{
		if ( ! $path = realpath($root))
		{
			throw new \Exception('Location does not exist: '.$root);
		}

		$this->root = $path;
	}
public function setRoot ( $ root ) { if ( ! $ path = realpath ( $ root ) ) { throw new \ Exception ( 'Location does not exist: ' . $ root ) ; } $ this -> root = $ path ; }
Sets a root restriction

@param string $root
Sets a root restriction