Gio.ZlibCompressor.prototype.set_file_info

function set_file_info(file_info: Gio.FileInfo): void {
    // Gjs wrapper for g_zlib_compressor_set_file_info()
}
  

Sets file_info in compressor. If non-null, and compressor's Gio.ZlibCompressor.format property is Gio.ZlibCompressorFormat.gzip, it will be used to set the file name and modification time in the GZIP header of the compressed data.

Note: it is an error to call this function while a compression is in progress; it may only be called immediately after creation of compressor, or after resetting it with Gio.Converter.prototype.reset.

Since 2.26

file_info

a Gio.FileInfo