> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# <FileGroup> element

> <FileGroup> element

Defines a rule by which files are added to a *chunk*, which is a collection of files that should be installed as a group.

<a id="syntaxSection" />

## Syntax

```xml theme={null}
<FileGroup
  SourcePath = string
  DestinationPath = string
  Include = string />  
```

<a id="ID4E3" />

### Attributes

#### SourcePath

Required. The source of files against which the rule is run. The path is relative to the content directory that's passed in with the `/d` parameter to the [makepkg](/build/core-features/common/packaging/deployment/makepkg) tool.

#### DestinationPath

Required. The target destination where files that are matched by the rule are placed in the file system of the generated image. This attribute should specify only the directory name. It shouldn't include the file name.

#### Include

Required. The rule for matching files under this source location. You can use a path that's relative to the source location, the standard "\*" and "?" wildcards, and/or environment variables.

<a id="remarks" />

## Remarks

This element isn't recursive. Every directory to be included must be specified by its own `FileGroup` element.

<a id="ID4EXC" />

## Information on elements

| Relationship   | Element name                                                                       |
| -------------- | ---------------------------------------------------------------------------------- |
| Parent element | [Chunk](/build/core-features/common/packaging/deployment/deployment-element-chunk) |
| Child element  | None                                                                               |

<a id="ID4EDD" />

## Example

```xml theme={null}
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level1" Include="*.map"/>
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level2" Include="*.map"/>
<FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level3" Include="*.map"/>  
```

## See also

[Deployment package schema](/build/core-features/common/packaging/deployment/atoc-deployment-schema)


## Related topics

- [<Package> element](/build/core-features/common/packaging/deployment/deployment-element-package.md)
- [<Chunk> element](/build/core-features/common/packaging/deployment/deployment-element-chunk.md)
- [Deployment package schema and streaming install tools](/build/core-features/common/packaging/deployment/index.md)
- [Deployment package schema](/build/core-features/common/packaging/deployment/atoc-deployment-schema.md)
- [Multiplayer Session advanced topics](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-details.md)
