# FiletypeGroups

The **FileTypeGroups** object represents a collection of [**FiletypeGroup**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/filetypegroup) objects. The object can be enumerated to retrieve the groups it represents.

You can obtain an object representing all the configured [file type groups](https://chaoses-ib.gitbook.io/directory-opus/manual/file_types/file_type_groups) from the [**DOpus**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus)**.filetypegroups** property. The [**Item**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/item)**.groupsobject** property returns a **FiletypeGroups** object restricted to just the groups the \*\*[Item](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/item)\*\*is a member of.

| Property Name      | Return Type                                                                                                                                         | Description                                                         |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| *\<default value>* | *collection:*[**FiletypeGroup**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/filetypegroup) | Lets you enumerate the file type groups represented by this object. |

| Method Name | **Arguments**      | Return Type                                                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                            |
| ----------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| GetGroup    | \<string:group>    | <p><em>object:</em><a href="filetypegroup"><strong>FiletypeGroup</strong></a><br>or<br><em>bool (<strong>False</strong>)</em></p> | <p>Searches the file type group collection for the named group.<br>If Opus is not running in English, the translated name is compared first; if not found, it will search for the native English name for the built-in groups.<br>Returns a <a href="filetypegroup"><strong>FiletypeGroup</strong></a> object or <strong>False</strong> if not found.</p>              |
| MatchExt    | \<string:filename> | \*object:\***FiletypeGroups**                                                                                                     | Returns a new \*\*FiletypeGroups \*\*object containing the subset of groups that the specified filename (or file extension) is a member of. You would normally only call this method on the object returned by the [**DOpus**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus)**.filetypegroups** property. |
| Translate   | \<string:group>    | *string*                                                                                                                          | <p>Returns the translated name of the named built-in file type group.<br>If not found, or no translation exists, the input string is returned.</p><p>For example, when running in French, calling this method with "Movies" as the input string would return "Vidéos".</p>                                                                                             |
