home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
090.lha
/
WCat
/
DCare.Doc
< prev
next >
Wrap
Text File
|
1986-11-20
|
3KB
|
63 lines
/* program "DCare"
by Walt Lounsbery, 4-6-87
Usage: DCat [a] MUST USE CLI!
This program scans disks in drive DF1 and creates a file RAM:DF1files
which contains a listing of files on each disk. This listing is in
a format suitable for reading by SuperBase or by the DCat program.
This file is mainly intended for the "Don't Care" file that DCat will
use to filter out common files from the catalogue database. It has
the following fields:
File name
Path name
Disk name
File ID (sum of first 900 bytes in the file)
File size (bytes)
File comment
File date
File access (including archive bit)
File icon flag
Ordinary ".info" files for directories are not in the listing. The file
listing is alphabetically sorted by path and file name. Note that this
sorting is done on a disk-by-disk basis. If a file has an icon in the
same directory, the flag is set to 'Y', otherwise it is 'N'. If an icon
file does not have an associated file, it is flagged with an 'I'.
The format of the file listing was changed to make an abbreviated format
fairly compatible. The abbreviated format is:
File name
Path name
Disk name
File ID
File size
This eliminates the file comment, file date, file access, and icon flag
to save space. This is also the format used for the "don't care" files
listing output from this routine.
This program can produce a listing of "don't care" file names in order to
prevent catalogueing of common files or files that are of no importance
in the catalogueing. Examples are the "more" program used to scan the
file documentation in the CUGW library, which appears on every disk.
Another example would be all the common files on the Workbench disk,
which appear on some of the distribution disks (contents of the "c"
directory, fonts, printer devices, libraries, etc).
The Don't Care List must be altered to indicate whether a file path is
important. This is accomplished by hand editing the file this program
produces. If a file must appear in the root directory, the path is ":".
If a file can appear anywhere, the path is null. If a file must appear in
a certain directory (the case for Workbench-type files), the path is
specified appropriately. The Don't Care List is called "DCL.dcat"
and is expected in the same directory as dcat itself. Please note
that the file ID code and size are also checked to match the DCL.dcat.
WARNING: This program requires more than 4000 bytes in the stack, a good
figure is 10000.
*/