Skip to main content

fetchContents()

Home > @backstage/plugin-scaffolder-node > fetchContents

A helper function that reads the contents of a directory from the given URL. Can be used in your own actions, and also used behind fetch:template and fetch:plain

Signature:

function fetchContents(options: {
reader: UrlReader;
integrations: ScmIntegrations;
baseUrl?: string;
fetchUrl?: string;
outputPath: string;
token?: string;
}): Promise<void>;

Parameters

ParameterTypeDescription
options{ reader: UrlReader; integrations: ScmIntegrations; baseUrl?: string; fetchUrl?: string; outputPath: string; token?: string; }

Returns:

Promise<void>