Learn R Programming

Capsule (version 0.2.0)

.calculate_checksum: Calculate Checksum with Smart Algorithm Selection

Description

Internal function to calculate file checksum using appropriate algorithm based on file size. Large files use faster xxHash, small files use SHA-256.

Usage

.calculate_checksum(file_path, fast_hash, size_threshold_gb, file_size_gb)

Value

List with checksum and algorithm

Arguments

file_path

Character. Path to file

fast_hash

Logical. Whether to use fast hashing for large files

size_threshold_gb

Numeric. Size threshold in GB

file_size_gb

Numeric. Actual file size in GB