write


Description:

[ Version ( since = "1.3.14" ) ]
public bool write (string path, uint8[] content) throws Error

create a new file

This call creates a file called path. The content of the file is the string content (which can contain any 8 bit data ).

See also write_append.

Parameters:

this

A GuestfsSession object

content

an array of binary data

content_size

The size of content, in bytes

Returns:

true on success, false on error