public function dir()
    {
        $this->_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid($this->_prefix);
        if (!mkdir($this->_name)) {
            throw new \Exception('Cannot create temporary directory');
        }
        return $this;
    }
public function dir()
    {
        $this->_name = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid($this->_prefix);
        if (!mkdir($this->_name)) {
            throw new \Exception('Cannot create temporary directory');
        }
        return $this;
    }
public function dir ( ) { $ this -> _name = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . uniqid ( $ this -> _prefix ) ; if ( ! mkdir ( $ this -> _name ) ) { throw new \ Exception ( 'Cannot create temporary directory' ) ; } return $ this ; }
Creates temporary directory

@throws \Exception
@return Temporary
Creates temporary directory