From f47dafd23186938a22d41739d9bc695c7760b912 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 1 May 2009 12:16:08 +0100 Subject: Generated code for 'equal' command. --- python/guestfs.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/guestfs.py') diff --git a/python/guestfs.py b/python/guestfs.py index 1596bcdb..d03a7a9d 100644 --- a/python/guestfs.py +++ b/python/guestfs.py @@ -1242,3 +1242,12 @@ class GuestFS: """ return libguestfsmod.ping_daemon (self._o) + def equal (self, file1, file2): + u"""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. + """ + return libguestfsmod.equal (self._o, file1, file2) + -- cgit