VerifyFile

STD.File.VerifyFile( file, usecrcs )

fileA null-terminated string containing the logical name of the file.
usecrcsA boolean TRUE/FALSE flag indicating that, when TRUE, compares physical CRCs of all the parts on disk. This may be slow on large files.
Return: VerifyFile returns returns a VARSTRING value.

The VerifyFile function checks the system datastore (Dali) information for the file against the physical parts on disk and returns the following values:

OKThe file parts match the datastore information
Could not find file: filenameThe logical filename was not found
Could not find part file: partnameThe partname was not found
Modified time differs for: partnameThe partname has a different timestamp
File size differs for: partnameThe partname has a file size
File CRC differs for: partnameThe partname has a different CRC

Example:

A := STD.File.VerifyFile('Fred1', TRUE);