equal


Description:

[ Version ( since = "1.0.18" ) ]
public int8 equal (string file1, string file2) throws Error

test if two files have equal contents

This compares the two files file1 and file2 and returns true if their content is exactly equal, or false otherwise.

The external cmp(1) program is used for the comparison.

Parameters:

this

A GuestfsSession object

Returns:

the returned value, or -1 on error