summaryrefslogtreecommitdiffstats
path: root/perl/lib/Sys/Guestfs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl/lib/Sys/Guestfs.pm')
-rw-r--r--perl/lib/Sys/Guestfs.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm
index a13c4411..7331053e 100644
--- a/perl/lib/Sys/Guestfs.pm
+++ b/perl/lib/Sys/Guestfs.pm
@@ -484,6 +484,13 @@ Setting C<whattodrop> to 3 should drop everything.
This automatically calls L<sync(2)> before the operation,
so that the maximum guest memory is freed.
+=item $equality = $h->equal ($file1, $file2);
+
+This compares the two files C<file1> and C<file2> and returns
+true if their content is exactly equal, or false otherwise.
+
+The external L<cmp(1)> program is used for the comparison.
+
=item $existsflag = $h->exists ($path);
This returns C<true> if and only if there is a file, directory