public function inCurrentDir(\Closure $closure)
    {
        $old = getcwd();
        $this->_mkdir($this->currentDir());
        chdir($this->currentDir());
        $closure($this);
        chdir($old);
    }
public function inCurrentDir(\Closure $closure)
    {
        $old = getcwd();
        $this->_mkdir($this->currentDir());
        chdir($this->currentDir());
        $closure($this);
        chdir($old);
    }
public function inCurrentDir ( \ Closure $ closure ) { $ old = getcwd ( ) ; $ this -> _mkdir ( $ this -> currentDir ( ) ) ; chdir ( $ this -> currentDir ( ) ) ; $ closure ( $ this ) ; chdir ( $ old ) ; }
In the current directory

@param Closure $closure
In the current directory