compress_out


Description:

[ Version ( since = "1.13.15" ) ]
public bool compress_out (string ctype, string file, string zfile, CompressOut? optargs, Cancellable? cancellable = null) throws Error

output compressed file

This command compresses file and writes it out to the local file zfile.

The compression program used is controlled by the ctype parameter. Currently this includes: compress, gzip , bzip2, xz or lzop. Some compression types may not be supported by particular builds of libguestfs, in which case you will get an error containing the substring "not supported".

The optional level parameter controls compression level. The meaning and default for this parameter depends on the compression program being used.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsCompressOut containing optional arguments

cancellable

A GCancellable object

Returns:

true on success, false on error