getFileNameWithContent

Method
📦 Aspire.Hosting v17.0.0
interface IAspireStore {
// ... omitted for brevity
getFileNameWithContent(
filenameTemplate: string,
sourceFilename: string): string;
}

Signature

methodgetFileNameWithContent
Gets a deterministic file path that is a copy of the `sourceFilename`. The resulting file name will depend on the content of the file.
getFileNameWithContent(
filenameTemplate: string,
sourceFilename: string): string
filenameTemplatestringA file name to base the result on.
sourceFilenamestringAn existing file.
string

Applies to

This method applies to the following types: