Skip to main content
Version: Next

Function: getResourceCachePath()

getResourceCachePath(source): string

Defined in: fetcher/fetcher.ts:68

Returns the persistent resource path used by download without downloading or checking whether it exists. Repository aliases and query parameters use the same cache identity as downloads. Local paths are returned unchanged, including any file:// prefix, matching download.

Parameters​

source​

string

The remote resource URL or local file path.

Returns​

string

The persistent cache path or the supplied local path.

We are Software Mansion.