summaryrefslogtreecommitdiffstats
path: root/python/guestfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/guestfs.py')
-rw-r--r--python/guestfs.py9
1 files changed, 9 insertions, 0 deletions
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)
+