archive method

Future<Uint8List> archive(
  1. String id,
  2. String path
)

Downloads a file or directory from the container's filesystem as a tar archive.

Sends GET /containers/{id}/archive?path={path} and returns the raw tar bytes.

Implementation

Future<Uint8List> archive(String id, String path) async {
  final resp = await _request(
    'GET',
    '/containers/$id/archive',
    queryParams: {'path': path},
  );
  _throwIfError(resp);
  return resp.body;
}