protected function setPathToUpdate(string $path, array $exclude)
    {
        $finder = (new Finder())->in($path)->exclude($exclude);

        $this->pathToUpdate = $finder;
    }
protected function setPathToUpdate(string $path, array $exclude)
    {
        $finder = (new Finder())->in($path)->exclude($exclude);

        $this->pathToUpdate = $finder;
    }
protected function setPathToUpdate ( string $ path , array $ exclude ) { $ finder = ( new Finder ( ) ) -> in ( $ path ) -> exclude ( $ exclude ) ; $ this -> pathToUpdate = $ finder ; }
Set the paths to be updated.

@param string $path    Path where the update should be run into
@param array  $exclude List of folder names that shall not be updated
Set the paths to be updated .