# Filesystem Example

The filesystem example provided along with the SDK download of Graphiti illustrates how one can use patterns for building Graphiti diagrams. It registers an editor for this that allows the user to create a filesystem with files and folders. Most of the functionality is build using patterns and ID patterns.

## Filesystem Example Plugin

The example plugin org.eclipse.graphiti.examples.filesystem is available as executable but also as source in the SDK download and within our repository under the examples folder. While the example is easy enough for quickly understanding it, it allows to demonstrate some features of Graphiti that are not explained in the tutorial.

## EMF Model

The examples plugin org.eclipse.graphiti.examples.filesystem.mm contains a small EMF model to define the filesystem model.

## Special Graphiti Features

The following special Graphiti features are shown in the Filesystem example:

- The filesystem object itself is implemented using Graphiti patterns.
- The file object is a simple example of a Graphiti ID pattern.
- The folder object is a more advanced example for a Graphiti ID pattern using nesting of a list of objects.