cache_exists Function

public function cache_exists(hash_key) result(cache_found)

Arguments

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

Check if cache entry exists

Return Value logical


Source Code

    function cache_exists(hash_key) result(cache_found)
        !> Check if cache entry exists
        character(len=*), intent(in) :: hash_key
        logical :: cache_found
        character(len=:), allocatable :: cache_path

        cache_path = join_path(trim(get_cache_subdir('builds')), trim(hash_key))
        cache_found = exists(trim(cache_path))

    end function cache_exists