Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_path |
Generate content-based hash for a single file using FPM's fnv_1a algorithm |
function get_single_file_content_hash(file_path) result(hash_key) !> Generate content-based hash for a single file using FPM's fnv_1a algorithm character(len=*), intent(in) :: file_path character(len=32) :: hash_key character(len=256), dimension(1) :: single_file_array ! Convert single file to array and use existing function single_file_array(1) = file_path hash_key = get_content_hash(single_file_array) end function get_single_file_content_hash