Compares the expected data size against the file size on disk. Stops with an error if the file is too small (truncated or corrupt).
check_file_size(filepath, header_bytes, data_bytes)logical, TRUE (invisibly) if the file is large enough.
Stops with an error otherwise.
character string, path to the file.
single numeric value, the number of bytes consumed by the file header (everything before the data payload).
single numeric value, the expected number of bytes in the data payload.