File.with_bytes


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.0" ) ]
public File.with_bytes (string name, Bytes bytes)

Create a File from a given Bytes.

If this file is to be added to an archive you should also probably use set_date and set_attributes to set sensible values.

Parameters:

name

name of the file within the cabinet

bytes

a Bytes to be added to the cabinet

Returns:

a new File