STD.File.VerifyFile( file, usecrcs )
| file | A null-terminated string containing the logical name of the file. |
| usecrcs | A 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:
| OK | The file parts match the datastore information |
| Could not find file: filename | The logical filename was not found |
| Could not find part file: partname | The partname was not found |
| Modified time differs for: partname | The partname has a different timestamp |
| File size differs for: partname | The partname has a file size |
| File CRC differs for: partname | The partname has a different CRC |
Example:
A := STD.File.VerifyFile('Fred1', TRUE);