# FlagdResource.WithBindFileSync

- Module: [CommunityToolkit.Aspire.Hosting.Flagd](/reference/api/go/communitytoolkit.aspire.hosting.flagd.md)
- Defined on: [FlagdResource](/reference/api/go/communitytoolkit.aspire.hosting.flagd/flagdresource.md)
- Version: `13.6.1`
- Kind: `method`

Configures flagd to use a bind mount as the source of flags.

## Definition

```go
type FlagdResource interface {
    // ... omitted for brevity
    WithBindFileSync(
        fileSource string,
        options ...*WithBindFileSyncOptions,
    ) FlagdResource
}
```

## Signature

```go
WithBindFileSync(
    fileSource string,
    options ...*WithBindFileSyncOptions,
) FlagdResource
```

## Parameters

- `fileSource` (`string`) -- The path to the host directory that contains the flag configuration file.
- `options` (`...*WithBindFileSyncOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithBindFileSyncOptions` argument.

- `Filename` (`*string`) -- The name of the flag configuration file. Defaults to "flagd.json".

## Returns

[`FlagdResource`](/reference/api/go/communitytoolkit.aspire.hosting.flagd/flagdresource.md) -- The `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [FlagdResource](/reference/api/go/communitytoolkit.aspire.hosting.flagd/flagdresource.md) -- `handle`
