static MateVFSResult
do_truncate (MateVFSMethod *method,
	     MateVFSURI *uri,
	     MateVFSFileSize where,
	     MateVFSContext *context)
{
	PERFORM_OPERATION (truncate, mate_vfs_truncate_uri_cancellable (uri, where, context));
}
Beispiel #2
0
/**
 * mate_vfs_truncate_uri:
 * @uri: uri of the file to be truncated.
 * @length: length of the new file at @uri.
 * 
 * Truncate the file at @uri to be only @length bytes. Data past @length
 * bytes will be discarded.
 * 
 * Return value: an integer representing the result of the operation.
 */
MateVFSResult
mate_vfs_truncate_uri (MateVFSURI *uri, MateVFSFileSize length)
{
	return mate_vfs_truncate_uri_cancellable(uri, length, NULL);
}