public function createDir($name)
    {
        $response = $this->api->request('PUT', $this->absolutePath($name), [
            'headers' => [
                'Content-Type' => 'application/directory',
            ],
        ]);

        if ($response->getStatusCode() !== 201) {
            throw new ApiRequestFailedException('Unable to create directory "'.$name.'".', $response->getStatusCode());
        }

        return $response->getHeaderLine('ETag');
    }
public function createDir($name)
    {
        $response = $this->api->request('PUT', $this->absolutePath($name), [
            'headers' => [
                'Content-Type' => 'application/directory',
            ],
        ]);

        if ($response->getStatusCode() !== 201) {
            throw new ApiRequestFailedException('Unable to create directory "'.$name.'".', $response->getStatusCode());
        }

        return $response->getHeaderLine('ETag');
    }
public function createDir ( $ name ) { $ response = $ this -> api -> request ( 'PUT' , $ this -> absolutePath ( $ name ) , [ 'headers' => [ 'Content-Type' => 'application/directory' , ] , ] ) ; if ( $ response -> getStatusCode ( ) !== 201 ) { throw new ApiRequestFailedException ( 'Unable to create directory "' . $ name . '".' , $ response -> getStatusCode ( ) ) ; } return $ response -> getHeaderLine ( 'ETag' ) ; }
Creates new directory.

@param string $name Directory name.

@throws \ArgentCrusade\Selectel\CloudStorage\Exceptions\ApiRequestFailedException

@return string
Creates new directory .