# AspireStore.GetFileNameWithContent

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [AspireStore](/reference/api/go/aspire.hosting/aspirestore.md)
- Version: `17.0.0`
- Kind: `method`

Gets a deterministic file path that is a copy of the `sourceFilename`. The resulting file name will depend on the content of the file.

## Definition

```go
type AspireStore interface {
    // ... omitted for brevity
    GetFileNameWithContent(
        filenameTemplate string,
        sourceFilename string,
    ) (string, error)
}
```

## Signature

```go
GetFileNameWithContent(
    filenameTemplate string,
    sourceFilename string,
) (string, error)
```

## Parameters

- `filenameTemplate` (`string`) -- A file name to base the result on.
- `sourceFilename` (`string`) -- An existing file.

## Returns

`(string, error)` -- A deterministic file path with the same content as `sourceFilename`.

Returns `(string, error)`.

## Defined on

- [AspireStore](/reference/api/go/aspire.hosting/aspirestore.md) -- `interface`
