Name : perl-File-DirCompare
| |
Version : 0.7
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.2.1
| Date : 2023-01-27 15:46:36
|
Group : Development/Libraries/Perl
| Source RPM : perl-File-DirCompare-0.7-lp154.2.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl module to compare two directories using
|
Description :
File::DirCompare is a perl module to compare two directories using a callback, invoked for all files that are \'different\' between the two directories, and for any files that exist only in one or other directory (\'unique\' files).
File::DirCompare has a single public compare() method, with the following signature:
File::DirCompare->compare($dir1, $dir2, $sub, $opts);
The first three arguments are required - $dir1 and $dir2 are paths to the two directories to be compared, and $sub is the subroutine reference called for all unique or different files. $opts is an optional hashref of options - see OPTIONS below.
The provided subroutine is called for all unique files, and for every pair of \'different\' files encountered, with the following signature:
$sub->($file1, $file2)
where $file1 and $file2 are the paths to the two files. For \'unique\' files i.e. where a file exists in only one directory, the subroutine is called with the other argument \'undef\' i.e. for:
$sub->($file1, undef) $sub->(undef, $file2)
the first indicates $file1 exists only in the first directory given ($dir1), and the second indicates $file2 exists only in the second directory given ($dir2).
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/15.4/noarch |