public function getFileInfo(?string $id, string $path)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/archive?'.http_build_query([
                'path' => $path,
            ]);

        self::$curl->get($url);

        return self::$curl->getResponseHeaders();
    }
public function getFileInfo(?string $id, string $path)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/archive?'.http_build_query([
                'path' => $path,
            ]);

        self::$curl->get($url);

        return self::$curl->getResponseHeaders();
    }
public function getFileInfo ( ? string $ id , string $ path ) { $ url = self :: $ base_url . '/' . ( $ id ?? $ this -> container_id ) . '/archive?' . http_build_query ( [ 'path' => $ path , ] ) ; self :: $ curl -> get ( $ url ) ; return self :: $ curl -> getResponseHeaders ( ) ; }
Get information about files in a container.

A response header `X-Docker-Container-Path-Stat` is return containing a base64 - encoded JSON object with some
filesystem header information about the path.

@param string|null $id
@param string      $path

@return mixed 200

@throws Exception
Get information about files in a container .