Internal function to calculate file checksum using appropriate algorithm based on file size. Large files use faster xxHash, small files use SHA-256.
.calculate_checksum(file_path, fast_hash, size_threshold_gb, file_size_gb)List with checksum and algorithm
Character. Path to file
Logical. Whether to use fast hashing for large files
Numeric. Size threshold in GB
Numeric. Actual file size in GB