X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=python%2Fguestfs.py;h=d03a7a9d7f9e2ecdc93a4d78d96d5a190d1028c3;hp=1596bcdb002a7b41ab81a6a01b501e3a38161eec;hb=f47dafd23186938a22d41739d9bc695c7760b912;hpb=d9ea3e8d979c3ade1b21f27083788fd33fa3b1fa;ds=sidebyside diff --git a/python/guestfs.py b/python/guestfs.py index 1596bcd..d03a7a9 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) +