get_single_file_content_hash Function

public function get_single_file_content_hash(file_path) result(hash_key)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: file_path

Generate content-based hash for a single file using FPM's fnv_1a algorithm

Return Value character(len=32)


Source Code

    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