Dan,
I have written dos like commands for comparing files, directories or trees:
cmpf
: reads the 2 files as text files using 'read (lu, '(a)', end=1002) file(num)'
This scans the content of two files, reporting line changes.
cmpufd
: reads 2 directories and compares file entries, based on the file date/time stamp from the DIR command, using
command = '>current.dir dir '//dir
call cissue (command, ifail)
comparison is based on the DIR character strings for file entries in the 2 directories.
cmptree
: reads 2 trees and compares file entries using call files@ (local_dir,...
again comparison is based on the date, time and size attributes of the file.
cmpufd and cmptree report:
- same entries (same date, time and size)
- entries with different date, time and size attributes
- entries where the time difference is only the daylight savings stamp
- entries that are unique to each directory
They do not scan for differences within each file, although time and size are a good indicator.
cmptree is a good indicator of missing files or sub-directories when checking similar backups or version changes.
If you need more info, send me a message.
John