public function extract(?string $id, string $path, bool $noOverwriteDirNonDir, string $request)
    {
        $id = $id ?? $this->container_id;

        $url = self::$base_url.'/'.$id.'/archive?'.http_build_query(compact(
                'path',
                'noOverwriteDirNonDir'
            ));

        $output = self::$curl->put($url, $request);

        $http_return_code = self::$curl->getCode();

        if (200 === $http_return_code) {
            return null;
        }

        throw new Exception(json_decode($output)->message, $http_return_code);
    }
public function extract(?string $id, string $path, bool $noOverwriteDirNonDir, string $request)
    {
        $id = $id ?? $this->container_id;

        $url = self::$base_url.'/'.$id.'/archive?'.http_build_query(compact(
                'path',
                'noOverwriteDirNonDir'
            ));

        $output = self::$curl->put($url, $request);

        $http_return_code = self::$curl->getCode();

        if (200 === $http_return_code) {
            return null;
        }

        throw new Exception(json_decode($output)->message, $http_return_code);
    }
public function extract ( ? string $ id , string $ path , bool $ noOverwriteDirNonDir , string $ request ) { $ id = $ id ?? $ this -> container_id ; $ url = self :: $ base_url . '/' . $ id . '/archive?' . http_build_query ( compact ( 'path' , 'noOverwriteDirNonDir' ) ) ; $ output = self :: $ curl -> put ( $ url , $ request ) ; $ http_return_code = self :: $ curl -> getCode ( ) ; if ( 200 === $ http_return_code ) { return null ; } throw new Exception ( json_decode ( $ output ) -> message , $ http_return_code ) ; }
Extract an archive of files or folders to a directory in a container.

@param string|null $id
@param string      $path                 path to a directory in the container to extract the archive’s contents
into
@param bool        $noOverwriteDirNonDir if “1”, “true”, or “True” then it will be an error if unpacking the
given content would cause an existing directory to be replaced with a
non-directory and vice versa
@param string      $request

@return mixed 200

@throws Exception
Extract an archive of files or folders to a directory in a container .