truncate


Description:

[ Version ( since = "1.0.77" ) ]
public bool truncate (string path) throws Error

truncate a file to zero size

This command truncates path to a zero-length file. The file must exist already.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error